Interpreted and IL languages need to refer to functions and variables by name, right? So I assume they use hash maps. But I wonder if any implementations optimize for short names—a bit in the hash could indicate that the "hash" is actually the full name, saving a lookup. Short names are common in the JS and Java worlds, where obfuscation/minimization is common.

Follow

I guess this could really just be generalized as a hashtable optimization that could happen to be useful to certain compilers

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!