Style question (was Re: Test)
Frank Morton
fmorton@mail.base2inc.com
Wed Sep 16 11:46:00 GMT 1998
>> This is how I have been doing things for a couple years now, but I always
>> wonder what kind of performance hit I am taking by not moving the
>> "char c" declaration outside the loop and breaking the age old rule.
>>Huh? Declararions have no run-time cost on any Java implementation
>I know.
So, I've been worried about nothing all this time. I assumed that the nature
of Java is to do lots of stuff at runtime, so I assumed the declaration
would
not actually allocate anything until it was in scope and would continue to
reallocate itself each pass through the loop.
More information about the Java
mailing list