3 ms·
The article does mention short string optimization: “One clever optimization is to store small strings directly instead of allocating and referencing a chunk.“
by lemoncucumber 8y ago
The article does mention short string optimization: “One clever optimization is to store small strings directly instead of allocating and referencing a chunk.“
In fact it links to the same post, so perhaps it was added in response to your comment?
- kazinator 8y agoThis is essentially the same optimization as storing small range integers as "fixnums" whereas the larger ones are heap- allocated "bignums".