That is my understanding too.

-phil.

On 08/13/2015 01:35 PM, Jim Graham wrote:


On 8/10/2015 2:15 PM, Laurent Bourgès wrote:
    Renderer.java, line 792: Do you need to copy ERR_STEP_MAX into a
    local?  It is a statically initialized final int - that should
    already be a constant that gets copied into the code.


I always copy constants used in loops to avoid repeated constant lookups.

I was under the understanding that if a constant is declared final and static, then it is compiled directly into the code and there is no constant lookup. Check the bytecodes and you should see a hard-coded literal 0x7fffffff everywhere it is used...

            ...jim

Reply via email to