4 ms·
You'd help me by explaining those cases. I'm not connected to the 'industry'. Also some major impl are 24 or even 32 bytes. With a generous SSO you catch a lot
by alcover 4y ago
You'd help me by explaining those cases. I'm not connected to the 'industry'.
Also some major impl are 24 or even 32 bytes. With a generous SSO you catch a lot of strings w/o overhead.
- morelisp 4y agoI'm not aware of any common string implementation that takes 3-4 words just to put an empty string in your struct especially if it also still requires external allocation with additional size words once the string gets above a certain size. Java takes 1, Go takes 2, SDS takes 1, libstdc++ takes 3 but doesn't require an external store later, etc.