3 ms·
Is it not a better approach, when already assuming semi-niche usage, to rely on more information about the string? e.g. * Have some of your strings be guarante
by einpoklum 3y ago
Is it not a better approach, when already assuming semi-niche usage, to rely on more information about the string? e.g.
* Have some of your strings be guaranteed-memoized, then just pass an index into the global/thread-local array of memoized strings.
* In tight loops working on a few strings, ensure they are all short, then forego pointers altogether and just use the values.
etc.