search for: dealtrep

Displaying 5 results from an estimated 5 matches for "dealtrep".

Did you mean: altrep
2019 Jan 22
2
Objectsize function visiting every element for alt-rep strings
...rint(object.size(cx)), gc=FALSE) > Error: cannot allocate vector of size 8388608.0 Gb > Timing stopped at: 11.43 0 11.46 > > > > One could consider it a bug that object.size(cx) is indeed > inspecting every string, i.e., accessing cx[i] for all i. > Note that it is *not* deALTREPing cx itself : > >> x <- 1:1e6 >> cx <- as.character(x) >> .Internal(inspect(cx)) > > @7f5b1a0 16 STRSXP g0c0 [NAM(1)] <deferred string conversion> > @7f5adb0 13 INTSXP g0c0 [NAM(7)] 1 : 1000000 (compact) >> system.time( print(object.size(cx)), g...
2019 Jan 21
0
Objectsize function visiting every element for alt-rep strings
...0.001 > system.time( print(object.size(cx)), gc=FALSE) Error: cannot allocate vector of size 8388608.0 Gb Timing stopped at: 11.43 0 11.46 > One could consider it a bug that object.size(cx) is indeed inspecting every string, i.e., accessing cx[i] for all i. Note that it is *not* deALTREPing cx itself : > x <- 1:1e6 > cx <- as.character(x) > .Internal(inspect(cx)) @7f5b1a0 16 STRSXP g0c0 [NAM(1)] <deferred string conversion> @7f5adb0 13 INTSXP g0c0 [NAM(7)] 1 : 1000000 (compact) > system.time( print(object.size(cx)), gc=FALSE) 64000048 bytes user...
2019 Jan 23
1
Objectsize function visiting every element for alt-rep strings
...ot allocate vector of size 8388608.0 Gb >>> Timing stopped at: 11.43 0 11.46 >>> > >>> >>> One could consider it a bug that object.size(cx) is indeed >>> inspecting every string, i.e., accessing cx[i] for all i. >>> Note that it is *not* deALTREPing cx itself : >>> >>>> x <- 1:1e6 >>>> cx <- as.character(x) >>>> .Internal(inspect(cx)) >>> @7f5b1a0 16 STRSXP g0c0 [NAM(1)] <deferred string conversion> >>> @7f5adb0 13 INTSXP g0c0 [NAM(7)] 1 : 1000000 (compact) &gt...
2019 Jan 15
4
Objectsize function visiting every element for alt-rep strings
I have a toy alt-rep string package that generates randomly seeded strings. example: library(altstringisode) x <- altrandomStrings(1e8) head(x) [1] "2PN0bdwPY7CA8M06zVKEkhHgZVgtV1" "5PN2qmWqBlQ9wQj99nsQzldVI5ZuGX" ... etc object.size(1e8) Object.size will call the set_altstring_Elt_method for every single element, materializing (slowly) every element of the vector. This
2019 Jan 22
0
Objectsize function visiting every element for alt-rep strings
...t; > Error: cannot allocate vector of size 8388608.0 Gb > > Timing stopped at: 11.43 0 11.46 > > > > > > > One could consider it a bug that object.size(cx) is indeed > > inspecting every string, i.e., accessing cx[i] for all i. > > Note that it is *not* deALTREPing cx itself : > > > >> x <- 1:1e6 > >> cx <- as.character(x) > >> .Internal(inspect(cx)) > > > > @7f5b1a0 16 STRSXP g0c0 [NAM(1)] <deferred string conversion> > > @7f5adb0 13 INTSXP g0c0 [NAM(7)] 1 : 1000000 (compact) > >&gt...