Skip to content
Prev 23775 / 63424 Next

SEXP i/o, .Call(), and garbage collection.

On Thursday 01 February 2007 2:01 pm, Hin-Tak Leung wrote:
Hmm.. I thought that using setAttrib() would automatically increase the 
reference count, right ?

In particular, I quite often use "pseudo-factor" string vectors - where the 
string objects are passed through cache and reused when forming a string 
vector. The result is true character() type but with considerable memory 
savings. The downside is that R reference count field is usually saturated.

                                best

                                    Vladimir Dergachev