Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Garbage Collection

When doing timings of commands it is useful to know that garbage collection plays a role. R adjusts its garbage collection triggers accoring to your usage. When you first start using large objects the trigger levels will grow and generally things will speed up. You can use gcinfo to see the adjustments in action:



> gcinfo(TRUE)

For the system.time function use the gcFirst.



Copyright © 2004-2005
Brought to you by Togaware.