Skip to content
Prev 168 / 21312 Next

[Bioc-devel] strange behavior on memory usage

Hi Vince, et al.

it seems to me the problem is bigger than just fixing the "show" method
and caching (duplicating) e.g. the dimension information in extra slots.
I am a bit worried that if "getExpData" is such a memory hog the whole
eSet class becomes much less useful - and people might be tempted to
revert back to using simple matrices for performance-critical
computations. Is there a better way to do this avoiding such overhead
with "getExpData" in the first place? (I guess we might need somebody
who understands the memory management in R and perhaps even can write
some of the necessary infrastructure in C.)

What I don't understand in Benilton's Email (one of the many things) is
this "ps: i just noticed that using dim(exprs(x)) in show() reduces the
memory usage from 6GB to 3.5GB... " but the implementation of exprs() is

setMethod("exprs", "eSet",
           function(object) getExpData(object, "exprs")
           )

i.e. it just calls getExpData:

setMethod("getExpData", c("eSet", "character"),
           function(object, name) {
               object at eList[[name]] })

  Best,
  Wolfgang
Vincent Carey 525-2265 wrote: