Displaying 3 results from an estimated 3 matches for "75000000l".
2015 Sep 29
3
making object.size() more meaningful on environments?
Hi,
Currently object.size() is not very useful on environments as it always
returns 56 bytes, no matter how big the environment is:
env1 <- new.env()
object.size(env1) # 56 bytes
env2 <- new.env(hash=TRUE, size=75000000L)
object.size(env2) # 56 bytes
env3 <- list2env(list(a=runif(25000000), L=LETTERS))
object.size(env3) # 56 bytes
This makes it pretty useless on reference class instances and other
objects that use environments internally for caching or other purposes.
What about changing this and m...
2015 Sep 29
1
making object.size() more meaningful on environments?
...gt;
> Hi,
>
> Currently object.size() is not very useful on environments as it always
> returns 56 bytes, no matter how big the environment is:
>
> env1 <- new.env()
> object.size(env1) # 56 bytes
>
> env2 <- new.env(hash=TRUE, size=75000000L)
> object.size(env2) # 56 bytes
>
> env3 <- list2env(list(a=runif(25000000), L=LETTERS))
> object.size(env3) # 56 bytes
>
> This makes it pretty useless on reference class instances and other
> objects that use environments internally for cachi...
2015 Sep 29
0
making object.size() more meaningful on environments?
...s at fredhutch.org> wrote:
> Hi,
>
> Currently object.size() is not very useful on environments as it always
> returns 56 bytes, no matter how big the environment is:
>
> env1 <- new.env()
> object.size(env1) # 56 bytes
>
> env2 <- new.env(hash=TRUE, size=75000000L)
> object.size(env2) # 56 bytes
>
> env3 <- list2env(list(a=runif(25000000), L=LETTERS))
> object.size(env3) # 56 bytes
>
> This makes it pretty useless on reference class instances and other
> objects that use environments internally for caching or other purposes.
&...