Re: [Rd] we need an exists/get hybrid

2014-12-03 Thread Peter Haverty
Thanks Winston! I'm amazed that "[[" beats calling the .Internal directly. I guess the difference between .Primitive vs. .Internal is pretty significant for things on this time scale. NULL meaning NULL and NULL meaning undefined would lead to the same path for much of my code. I'll be swapping

Re: [Rd] we need an exists/get hybrid

2014-12-03 Thread Winston Chang
I've looked at related speed issues in the past, and have a couple related points to add. (I've put the info below at http://rpubs.com/wch/46428.) There’s a significant amount of overhead just from calling the R function get(). This is true even when you skip the pos argument and provide envir. Fo

Re: [Rd] Bundling system dependencies in binary packages

2014-12-03 Thread Louis Aslett
On 3 December 2014 at 07:40, Prof Brian Ripley wrote: > On 02/12/2014 18:34, Louis Aslett wrote: >> I've been hunting round for the accepted method of bundling system >> dependencies into binary packages. >> >> For example, there are some CRAN packages (e.g. gmp, RcppArmadillo, >> ...) which don't

[Rd] we need an exists/get hybrid

2014-12-03 Thread Peter Haverty
Hi All, I've been looking into speeding up the loading of packages that use a lot of S4. After profiling I noticed the "exists" function accounts for a surprising fraction of the time. I have some thoughts about speeding up exists (below). More to the point of this post, Martin M�chler noted tha