Pro Tip: Strings in MRI are “copy on write” meaning things like String#dup or slice won’t necessarily copy all underlying bytes.
-
-
of course :)
-
I wonder if you could pack a compressed pointer, offset and size into a tagged pointer and have zero-allocation strings?
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.