3 ms·
> - There's no way to do array access without null pointer and index checks each and every time. Actually there is. Have you checked out the sun.misc.Unsafe cl
by jcdavis 15y ago
> - There's no way to do array access without null pointer and index checks each and every time.
Actually there is. Have you checked out the sun.misc.Unsafe class? Lots of very dangerous gems in there, among them the ability to calculate array offsets and access the array elements directly. (check out arrayBaseOffset + arrayIndexScale + getObject/getLong/etc)