PATCH: java.util.Collections and java.util.Vector

Tom Tromey tromey@cygnus.com
Wed Nov 22 16:25:00 GMT 2000


Bryce> (given a modern cpu, is it really faster to use a descending
Bryce> loop, or is that just an old hacker legend?)

I always figured that people did descending loops so that the
optimizer could more easily notice that the loop bound was constant.
I haven't looked to see whether gcj knows that `array.length' is
constant if array never changes.  (I doubt it does.)

Thanks for the update.

Tom


More information about the Java-patches mailing list