Displaying 5 results from an estimated 5 matches for "80485d8".
Did you mean:
1048568
2019 Jan 22
2
Objectsize function visiting every element for alt-rep strings
...sorted(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( print(object.size(x)), gc=FALSE)
> 8000000000000048 bytes
> user system elapsed
> 0.000 0.000 0.001
> > sy...
2019 Jan 21
0
Objectsize function visiting every element for alt-rep strings
...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( print(object.size(x)), gc=FALSE)
8000000000000048 bytes
user system elapsed
0.000 0.000 0.001
> system.time( print(objec...
2019 Jan 23
1
Objectsize function visiting every element for alt-rep strings
...>>> > 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( print(object.size(x)), gc=FALSE)
>>> 8000000000000048 bytes
>>> user system elapsed
>>...
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
...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( print(object.size(x)), gc=FALSE)
> > 8000000000000048 bytes
> > user system elapsed
> > 0.000 0....