3 ms·
That’s disingenuous. That quote is _immediately_ followed by a note > Technically there will be a tiny amount of extra data, like a length, so it won't be prec
by Someone 6y ago
That’s disingenuous. That quote is _immediately_ followed by a note
> Technically there will be a tiny amount of extra data, like a length, so it won't be precisely twice the size. But it's close enough for our purposes.
Also, nitpicking, those two strings _can_ take up the same amount of memory due to short string optimization (https://joellaity.com/2020/01/31/string.html https://joellaity.com/2020/01/31/string.html shows that libc++ uses 24 bytes for strings up to 22 bytes long) or (for implementations that don’t do SSO) due to granularity of heap allocations.