From tr@ver@c @end|ng |rom gm@||@com  Tue Jan 15 21:50:45 2019
From: tr@ver@c @end|ng |rom gm@||@com (Travers Ching)
Date: Tue, 15 Jan 2019 12:50:45 -0800
Subject: [Rd] Objectsize function visiting every element for alt-rep strings
Message-ID: <CAPLMX9GKS9QQs9WRBYQQc8f1xc3B2OmXu5URLP=BDa6QFHHVVw@mail.gmail.com>

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 is
a problem mostly in R-studio since object.size is called
automatically, defeating the purpose of alt-rep.

Is there a way to avoid the problem of forced materialization in rstudio?

PS: Is there a way to tell if a post has been received by the mailing
list?  How long does it take to show up in the archives?



[Rd] Objectsize function visiting every element for alt-rep strings
Travers Ching