performance - R: performence, memory use. Writing a text file or keeping all the information in R objects? -
through iteration construct big matrix , in order speed these iterations split matrix chunks put in list.
would have better save chunks of matrix text file , append new chunk on same text file instead of keeping them in list. change in terms of memory use , performence (time run simulation) ?
second question: there way know memory size of r object (without having save .rdata file)
thank in advance !
retain matrix in ram if possible. else can bigmemory package.
and latest version of r has better support large vectors. helpful if have 64-bit machine large amounts of ram.
note:since talking performance, practice pre-allocate matrix (instead of frequent use of rbind / cbind)
Comments
Post a Comment