Skip to content

Efficiency question

2 messages · Worik R, Joris Meys

#
On Tue, Jun 8, 2010 at 11:53 PM, Worik R <worikr at gmail.com> wrote:
this is one call less to a function, and hence more efficient. I
suppose it has to be order.by=m.i

Btw, How should R know what to cache? If it would cache all
calculations, you'd be out of memory in no time.
If you have more questions like this, you can test it by yourself, eg :
user  system elapsed
   7.61    0.09    7.76
user  system elapsed
   1.49    0.06    1.58

Cheers
Joris