Re: [Rd] ALTREP: Design concept of alternative string

2019-05-10 Thread ไป‹้ž็Ž‹
Hi Gabriel, Thanks for your explanation, I totally understand that it is almost impossible to change the data structure of STRSXP. However, what I'm proposing is not about changing the internal representation, but rather about how we design and use the ALTREP API. I might do not state the workar

Re: [Rd] ALTREP: Design concept of alternative string

2019-05-09 Thread Gabriel Becker
Hi Jiefei, The issue here is that while the memory consequences of what you're describing may be true, this is simply how R handles character vector (what you're calling string) values internally. It doesn't actually have anything to do with ALTREP. Standard character vector SEXPs have an array of