search for: rprofmemt

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

Did you mean: rprofmem
2017 Mar 07
0
length(unclass(x)) without unclass(x)?
...nce improvement you're looking for is implemented in the latest version of pqR (pqR-2016-10-24, see pqR-project.org), along with corresponding improvements in several other circumstances where unclass(x) does not create a copy of x. Here are some examples (starting with yours), using pqR's Rprofmemt function to get convenient traces of memory allocations: > Rprofmemt(nelem=1000) # trace allocations of vectors with >= 1000 elements > > x <- structure(double(1e6), class = c("foo", "numeric")) RPROFMEM: 8000040 (double 1000000):"double" &quo...