Skip to content
Prev 74902 / 398502 Next

Odd timing behaviour in reading a file

Please see the gcFirst argument to system.time, which you should set to 
TRUE for such timings.  Your second run is paying to GC the results of the 
first, most likely.

Beyond that, R adjusts its GC triggers based on usage, and when you first 
start using large objects the trigger levels will grow and generally 
things will speed up.  Set gcinfo(TRUE) to watch what is happening.
On Thu, 4 Aug 2005, Glenn Stone wrote: