Skip to content
Prev 167271 / 398502 Next

Memory allocation

On 1/16/2009 12:46 PM, Gabriel Margarido wrote:
I believe this will do less copying, but I haven't profiled it to be 
sure.  Replace the last three lines with this one statement:

structure(list(..., bigarray=bigarray, ...),
                    class = "myfunc")

If that doesn't help, then you really need to determine where the 
copying is happening: you can use Rprofmem() to do that.


Duncan Murdoch