Re: [Rd] Pre-compilation and server-side parallel execution

From: Simon Urbanek <simon.urbanek_at_r-project.org>
Date: Fri 08 Dec 2006 - 22:28:07 GMT

On Dec 8, 2006, at 9:51 AM, Erik van Zijst wrote:

> 2. R's native C-api
> [http://cran.r-project.org/doc/manuals/R-exts.html#The-R-API] does
> not separate parsing from evaluation.

Actually it does - see "R_ParseVector" and "eval". You're free to run the parser once (or even construct the expression directly) and evaluate it many times. (Also note that you can serialize the parsed expression if desired).

If your worries are really at this level, then you will have to create entirely your own solution, because the overhead of IPC will be way more that the time spent in the parser. Actually I'm wondering whether you checked it at all, because I'd almost certainly expect the evaluation to take way more time than the parsing step. If it does, I'd be inclined to think that you have rather a design problem.

Cheers,
Simon



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Dec 09 09:30:45 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 09 Dec 2006 - 15:31:00 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.