This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]