Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: