Hacker News new | past | comments | ask | show | jobs | submit login

This would be due to string interning, which automatically caches small strings, which are very common because attribute names are just strings.



To be clear the question of which strings to intern is up to an implementation of string interning. Only small strings, all strings, or even only large strings are all options that are good for different reasons.




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

Search: