Processor support for select operations

Vitaly Davidovich vitalyd at gmail.com
Tue Nov 11 13:47:05 UTC 2014


Have you tried doing the array access via Unsafe? It's not clear from the
citation what exactly is the issue with java array access,  but I'm
assuming it's the range checks.

Sent from my phone
On Nov 11, 2014 3:34 AM, "Paul Elschot" <paul.j.elschot at gmail.com> wrote:

> Dear readers,
>
> I recently asked this question on the lucene-dev list
> (http://lucene.apache.org/core/discussion.html), and in reply David
> Weiss pointed me here.
> He also pointed to some recent discussions here on the use of bit
> operations to implement an IndexSetIterator, so you may be interested
> because of that.
>
> This was the question, also somewhat off topic here:
>
> For LUCENE-6040 it would be good to have better processor support for
> selecting the i-th set bit from a 64-bit integer.
>
> Not too long ago Long.bitCount() was intrinsified in JVM's.
>
> I hope something similar will happen to a select(long x, int i)
> method. However, better processor support is needed first.
>
> This is somewhat off topic here, but does anyone know how to request
> better processor support for select operations?
>
>
> Regards,
> Paul Elschot
>
>
> To be complete here are some references:
> - http://vigna.di.unimi.it/Sux/select.php on the currently fastest
> select code in C,
> - https://issues.apache.org/jira/browse/LUCENE-6040 the above lucene
> issue with select code in Java.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20141111/7171c873/attachment.html>


More information about the hotspot-compiler-dev mailing list