search for: 80255f8

Displaying 5 results from an estimated 5 matches for "80255f8".

2019 Jan 22
2
Objectsize function visiting every element for alt-rep strings
...;- 1:1e15 > > object.size(x) # 8000'000'000'000'048 bytes : 8000 TBytes -- ok, not really > 8000000000000048 bytes > > is.unsorted(x) # FALSE : i.e., R's *knows* it is sorted > [1] FALSE > > xs <- sort(x) # > > .Internal(inspect(x)) > @80255f8 14 REALSXP g0c0 [NAM(7)] 1 : 1000000000000000 (compact) > > > > > cx <- as.character(x) > > .Internal(inspect(cx)) > @80485d8 16 STRSXP g0c0 [NAM(1)] <deferred string conversion> > @80255f8 14 REALSXP g1c0 [MARK,NAM(7)] 1 : 1000000000000000 (compact) &...
2019 Jan 21
0
Objectsize function visiting every element for alt-rep strings
...LTREP.html ) : > x <- 1:1e15 > object.size(x) # 8000'000'000'000'048 bytes : 8000 TBytes -- ok, not really 8000000000000048 bytes > is.unsorted(x) # FALSE : i.e., R's *knows* it is sorted [1] FALSE > xs <- sort(x) # > .Internal(inspect(x)) @80255f8 14 REALSXP g0c0 [NAM(7)] 1 : 1000000000000000 (compact) > > cx <- as.character(x) > .Internal(inspect(cx)) @80485d8 16 STRSXP g0c0 [NAM(1)] <deferred string conversion> @80255f8 14 REALSXP g1c0 [MARK,NAM(7)] 1 : 1000000000000000 (compact) > system.time( prin...
2019 Jan 23
1
Objectsize function visiting every element for alt-rep strings
...000'048 bytes : 8000 TBytes -- ok, not >> really >>> 8000000000000048 bytes >>> > is.unsorted(x) # FALSE : i.e., R's *knows* it is sorted >>> [1] FALSE >>> > xs <- sort(x) # >>> > .Internal(inspect(x)) >>> @80255f8 14 REALSXP g0c0 [NAM(7)] 1 : 1000000000000000 (compact) >>> > >>> >>> > cx <- as.character(x) >>> > .Internal(inspect(cx)) >>> @80485d8 16 STRSXP g0c0 [NAM(1)] <deferred string conversion> >>> @80255f8 14 REALSXP...
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
...# 8000'000'000'000'048 bytes : 8000 TBytes -- ok, not > really > > 8000000000000048 bytes > > > is.unsorted(x) # FALSE : i.e., R's *knows* it is sorted > > [1] FALSE > > > xs <- sort(x) # > > > .Internal(inspect(x)) > > @80255f8 14 REALSXP g0c0 [NAM(7)] 1 : 1000000000000000 (compact) > > > > > > > > cx <- as.character(x) > > > .Internal(inspect(cx)) > > @80485d8 16 STRSXP g0c0 [NAM(1)] <deferred string conversion> > > @80255f8 14 REALSXP g1c0 [MARK,NAM(7)] 1...