Re: Potential Bytecode Optimization

2017-04-07 Thread Jochen Theodorou
On 06.04.2017 11:12, Jennifer Strater wrote: [...] I can remove the extra instructions, but I'd like to see if it makes a difference. The JVM is very good at removing dead code. The removal of dead code even lowers the actual code size considered for inlining. So I don't think I can give an

Re: Potential Bytecode Optimization

2017-04-06 Thread Cédric Champeau
Hi Jenn! I think a good way to test this is to use JMH. And for this particular scenario, find a method that would exceed the maximum bytecode size for inlining, and would go below that limit with your optimization. 2017-04-06 11:12 GMT+02:00 Jennifer Strater : > Hi all, > > As part of a special