search for: 7f5adb0

Displaying 5 results from an estimated 5 matches for "7f5adb0".

2019 Jan 22
2
Objectsize function visiting every element for alt-rep strings
...ed > 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 system elapsed > 0.369 0.005 0.374 >> .Internal(inspect(cx)) > @7f5b1a0 16 STRSXP g0c0 [NAM(7)] <deferred string conversion> > @7f5adb...
2019 Jan 21
0
Objectsize function visiting every element for alt-rep strings
...r 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 system elapsed 0.369 0.005 0.374 > .Internal(inspect(cx)) @7f5b1a0 16 STRSXP g0c0 [NAM(7)] <deferred string conversion> @7f5adb0 13 INTSXP g0c0 [NAM(7)] 1...
2019 Jan 23
1
Objectsize function visiting every element for alt-rep strings
...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 system elapsed >>> 0.369 0.005 0.374 >>>> .Internal(inspect(cx)) >>> @7f5b1a0 16 STRSXP g0c0 [NAM(7)]...
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
...ccessing 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 system elapsed > > 0.369 0.005 0.374 > >> .Internal(inspect(cx)) > > @7f5b1a0 16 STRSXP g0c0 [NAM(7)] <deferred strin...