Skip to content

Odd timing behaviour in reading a file

2 messages · Glenn.Stone@csiro.au, Brian Ripley

#
Thanks, very helpful.

Is there some way to adjust those GC triggers in advance?

-----Original Message-----
From:	Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent:	Thu 8/4/2005 4:15 PM
To:	Stone, Glenn (CMIS, North Ryde)
Cc:	r-help at stat.math.ethz.ch
Subject:	Re: [R] 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:

            

  
    
#
On Sun, 7 Aug 2005 Glenn.Stone at csiro.au wrote:

            
Almost: that is what the statrtup flags such as --min-vsize help do.
[...]