This is the mail archive of the java-discuss@sourceware.cygnus.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: ReRe: performance - some details (and shellsort)



Jeff Sturm writes:

> That's more like it!  I wonder if this call could somehow be
> optimized away, if the compiler is smart enough to know that it is
> reassigning values from the same array...

At first glance, it seems that such an optimization could be
implemented. It's more a matter of finding one available hook on
variable DECLs to remember the information. If no such hook is
available, the implementation would be more costly (in terms of lines
of code to write and test.)

./A

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