3 ms·
So we're not talking about runtime performance, but some minor improvement in loading times? I assume that once the JVM has read the bytecode, it has its own ef
by mort96 1y ago
So we're not talking about runtime performance, but some minor improvement in loading times? I assume that once the JVM has read the bytecode, it has its own efficient in-memory structures to track references to classes rather than using a hash map with fully qualified names as keys
- saagarjha 1y agoThe names need to be stored somewhere because they are exposed to the program that way
- swiftcoder 1y agoProguard was heavily influenced by the needs of early Android devices, where memory was at a real premium. Reducing the size of static tables of strings is a worthwhile optimisation in that environment
- mort96 1y agoOkay but we're talking about Minecraft on desktops and laptops, where the relevant optimizations would be runtime performance optimizations, no?
- swiftcoder 1y agoProbably, but proguard tends to bundle the whole lot together
- throwaway2037 1y agoEven a hash map with fully qualified names as keys wouldn't be so bad because Stirng is immutable in Java, so the hash code can be cached on the object.