search for: mysmallclass

Displaying 1 result from an estimated 1 matches for "mysmallclass".

2012 Jun 19
1
Reference classes and memory consumption
Dear All, It seems that reference classes consume a lot of memory which became a problem for my rather extensive simulation. I prepared a small example. An instance of this minimal class uses about 20K on disk. rm(list=ls(all=TRUE)); MySmallClass = setRefClass("MySmallClass", fields = list( myField = "numeric" ), methods = list( initialize = function(f) { myField <<- f; }) ); o = MySmallClass$new(10); saveRDS(o, file="C:\\o.rds"); file.info("C:\\o.rds")$...