4 ms·
How much does automatic interning of string literals help out here?
by brandmeyer 5y ago
How much does automatic interning of string literals help out here?
- wizzwizz4 5y agoIt doesn't. That's the size assuming interning of string literals.
- brandmeyer 5y agoGlurk! Thanks.
- masklinn 5y agosys.getsizeof is not recursive so that's just the size of the collection itself, excluding the stuff it references (so both keys and values are additional, here the strings are literal so they're interned and part of the program constants).