[R] R Memory Usage Concerns

hadley wickham h.wickham at gmail.com
Tue Sep 15 06:42:48 CEST 2009


> its 32-bit representation. This seems like it might be too
> conservative for me, since it implies that R allocated exactly as much
> memory for the lists as there were numbers in the list (e.g. typically
> in an interpreter like this you'd be allocating on order-of-two
> boundaries, i.e. sizeof(obj) << 21; this is how Python lists
> internally work).

This is not how R vectors work.  R data structures tend to be
immutable, and so are designed somewhat differently to their python
equivalents.

Hadley


-- 
http://had.co.nz/




More information about the R-help mailing list