Re: [R] total CPU time in Matlab - what is the equivalent in R?

2012-08-27 Thread Jan Mueller
Maybe the unix time command comes in handy (provided you work with linux)? http://en.wikipedia.org/wiki/Time_(Unix) Best Jan -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von William Dunlap Gesendet: Montag, 27. August 2012 1

Re: [R] Reference classes and memory consumption

2012-08-27 Thread Jan Mueller
I found something that looks a bit odd to me: The memory consumption of reference classes seems to increase dramatically (roughly 10x in the example below) with serialization/deserialization (saveRDS() / readRDS()). Maybe creating instances of the same class has a synergy effect (references?) w

Re: [R] Reference classes and memory consumption

2012-06-21 Thread Jan Mueller
Dear Martin, thank you for your hints. They were very helpful. Maybe memory.size() is a more reasonable measure of memory consumption? Here's a rough comparison of 10.000 instances of a reference class, an S3 class and a simple vector: Reference Class: 14MB S3 class: 1,76MB Vector: 0.08MB So c

[R] Reference classes and memory consumption

2012-06-19 Thread Jan Mueller
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 =