[R] memory management

Sam Steingold sds at gnu.org
Wed Feb 29 17:42:04 CET 2012


> * William Dunlap <jqhaync at gvopb.pbz> [2012-02-28 23:06:54 +0000]:
>
> You need to walk through the objects, checking for environments on
> each component or attribute of an object.

so why doesn't object.size do that?

>   > f <- function(n) {
>   +   d <- data.frame(y = rnorm(n), x = rnorm(n))
>   +   lm(y ~ poly(x, 4), data=d)
>   + }

I am not doing any modeling. No "~". No formulas.
The whole thing is just a bunch of data frames.
I do a lot of strsplit, unlist, & subsetting, so I could imagine why
the RSS is triple the total size of my data if all the intermediate
results are not released.

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://honestreporting.com http://memri.org
http://jihadwatch.org http://pmw.org.il http://camera.org http://ffii.org
To be popular with ladies one has to be smart, handsome & rich. Or to be a cat.



More information about the R-help mailing list