search for: rmemprof

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

Did you mean: jmemprof
2009 Jan 16
2
Memory allocation
...e function generates a very big array (can be more than 1 Gb) and returns a few variables, including this big one. Memory allocation is OK while the function is running, but the final steps make some copies that can be problematic. I looked for a way to return the values without copying (even tried Rmemprof), but without success. Any ideas? The code looks like this: myfunc <- function() { ... bigarray <- ... ... final <- list(..., bigarray=bigarray, ...) class(final) <- "myfunc" final } Thank you in advance, Gabriel. [[alternative HTML version deleted]]