3 ms·
This would be due to string interning, which automatically caches small strings, which are very common because attribute names are just strings.
by nneonneo 9y ago
This would be due to string interning, which automatically caches small strings, which are very common because attribute names are just strings.
- Dylan16807 9y agoTo 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.