reproducible
reproducible copied to clipboard
caching/saving extremely slow -- problem capturing environments
attempting to run the module with latest SpaDES.core and reproducible. reprex to follow.
@CeresBarros have you noticed issues caching/saving this module?
Sep28 10:39:55 Biomass_speciesData total elpsd: 2.4 mins | 0 Biomass_speciesData ini
simList saved in
SpaDES.core:::.pkgEnv$.sim
It will be deleted at next spades() call.
Saving large object (cacheId: de6e72cd9a0724dc) to Cache: 1.1 Gb
Object with cacheId de6e72cd9a0724dc appears to have a much larger size on disk than in memory. This usually means that the object has captured an environment with many objects due to how a function or a formula is defined. Usually, a solution involves using quote and eval around the formulas and defining functions in a package or otherwise clean space, i.e., not inside another function.
See http://adv-r.had.co.nz/memory.html#gc and 'capturing environments'.
Done!