search for: dofoff

Displaying 1 result from an estimated 1 matches for "dofoff".

2007 Mar 28
2
Suggestion for memory optimization and as.double() with friends
...2.6 10104223 77.1 What's the catch? The reason why I bring it up, is because many (most?) methods are using as.double() etc "just in case" when passing arguments to .Call(), .Fortran() etc, e.g. stats::smooth.spline(): fit <- .Fortran(R_qsbart, as.double(penalty), as.double(dofoff), x = as.double(xbar), y = as.double(ybar), w = as.double(wbar), <etc>) Your memory usage is peaking in the actual call and the garbage collector cannot clean it up until after the call. This seems to be waste of memory, especially when the objects are large (100-1000MBs). Cheers H...