Improving the performance of OpenJDK
gbenson at redhat.com
Wed Feb 18 03:37:46 PST 2009
Andrew Haley wrote:
> Right. The whole idea of the way it's don ATM is bonkers: do a
> byte- at-a-time unaligned load into machine order, then reverse the
> bytes. Maybe the hope was that the compiler would see all this
> cruft and silently convert it into an efficient form, but, er, no.
How does it work for longer types? For a 64-bit value, for instance,
is it better to always do 8 individual loads, or might it be better
to try and optimize like they have done?
More information about the zero-dev