Why is the number of local variables used in a Java bytecode method not the most economical?
There are several reasons. First off, it’s not necessary for performance. The JVM already optimizes things at runtime, so there’s no point in adding redundant complexity to the compiler. However, another major reason noone has mentioned here is debugging. Making the bytecode as close to the original source as possible makes it a lot easier … Read more