4 ms·
> Does this make string.intern() more valuable? Probably depends on the use case, though I'm having trouble thinking of such a use case. If you were dynamicall
by daxfohl 1y ago
> Does this make string.intern() more valuable?
Probably depends on the use case, though I'm having trouble thinking of such a use case. If you were dynamically creating a ton of different sets that had different instances of the same strings, then, maybe? But then the overhead of calling `.intern` on all of them would presumably outweigh the overhead of calling `.hash` anyway. In fact, now that `.hash` is faster, that could ostensibly make `.intern` less valuable. I guess.