Skip to content
Prev 245689 / 398502 Next

speed issues? read R_inferno by Patrick Burns: & a memory query

Actually the issue is not the size of memory that is consumed, but that 
memory allocation takes place and the object is copied in each iteration 
of the "bad" loop you have given below. This is not required for the 
second loop, where R can allocate the memory at once and does not need 
to copy the object around.

Uwe Ligges
On 23.12.2010 14:13, maddox wrote: