Displaying 2 results from an estimated 2 matches for "8e6".
Did you mean:
8,6
2018 Sep 18
3
memory footprint of readRDS()
Dear all,
I tried to read in a 3.8Gb RDS file on a computer with 16Gb available
memory. To my astonishment, the memory footprint of R rises quickly to over
13Gb and the attempt ends with an error that says "cannot allocate vector
of size 5.8Gb".
I would expect that 3 times the memory would be enough to read in that
file, but apparently I was wrong. I checked the memory.limit() and that
2018 Sep 18
0
memory footprint of readRDS()
...e6), compress=FALSE)
obj/file size
0.9999986
> f(rep(89.7,1e6))
obj/file size
682.6555
> f(log(1:1e6))
obj/file size
1.309126
> f(vector("list",1e6))
obj/file size
2021.744
> f(as.list(log(1:1e6)))
obj/file size
8.907579
> f(sample(as.raw(0:255),size=8e6,replace=TRUE))
obj/file size
0.9998433
> f(rep(as.raw(0:255),length=8e6))
obj/file size
254.5595
> f(as.character(1:1e6))
obj/file size
23.5567
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Sep 18, 2018 at 8:28 AM, Joris Meys <jorismeys at gmail.com> wrote:
&g...