Comment

Comment by nine_k

It's similar. It's just not by word, but by entire string, assuming that strings are immutable, long enough, and the same string values are referenced often enough.

On 64-bit machines though strings shorter than 8 bytes are better off not interned.

parent nine_k 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton