track.performance: Performance tuning with track.

Description See Also

Description

Performance tuning with track involves trading off memory use for faster access times to objects. Access time is fastest when all objects are cached in memory, but memory can be exhausted if this is done. Memory use is minimized when objects are not cached in memory at all, but then a file must be read or written each time an object is referenced, and the whole file must be read or written even if only a small part of the object is actually used or changed.

The default mode of operation of track balances memory use and access times by keeping objects in memory for the duration of a top-level task, and flushing them out at the end of the task.

Three options (see track.options) control performance:

Useful possible combinations of settings are:

Performance tuning is a possible area of future development of the track package, at as version 0.9-9, the defaults settings of cache=TRUE, cachePolicy="tltPurge", and writeToDisk=TRUE work well. However, smarter caching based on access patterns to objects is certainly possible.

See Also

Overview and design of the track package.


track documentation built on May 2, 2019, 10:22 a.m.