Unsafe.{get,put}-X-Unaligned performance (original) (raw)
Andrew Haley aph at redhat.com
Thu Mar 12 21:05:50 UTC 2015
- Previous message: Unsafe.{get,put}-X-Unaligned performance
- Next message: Unsafe.{get,put}-X-Unaligned performance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 03/12/2015 07:29 PM, Peter Levart wrote:
What about the following variant (or similar with ifs in case switch is sub-optimal):
public final long getLongUnaligned(Object o, long offset) { switch ((int) offset & 7) ...
I tried that already, and it wasn't really any faster, and it won't vectorize nicely (vectorization was high on John's list).
Andrew.
- Previous message: Unsafe.{get,put}-X-Unaligned performance
- Next message: Unsafe.{get,put}-X-Unaligned performance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the hotspot-compiler-dev mailing list