cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ariel Weisberg (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-13903) Add JDK9 vectorizedMismatch array compare support
Date Tue, 10 Jul 2018 21:00:00 GMT


Ariel Weisberg commented on CASSANDRA-13903:

I would be interested to see it performs for small and large sizes of arrays. Is there a startup
time penalty for using the intrinsic is what I am wondering?

> Add JDK9 vectorizedMismatch array compare support
> -------------------------------------------------
>                 Key: CASSANDRA-13903
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Local Write-Read Paths
>            Reporter: Yingqi Lu
>            Priority: Major
>              Labels: Performance
> Dear All,
> JDK9 has recently been released ( It introduces
a set of new vectorizedMismatch APIs for array comparison. On supported platforms, the new
JDK9 implementation is intrisified to leverage SIMD instructions. For a byte array comparison,
up to 64 bytes (512 bits) can be compared as a single unit. Feature details please refer to and
> Currently in Cassandra, keys are implemented as ByteBuffers and compared as byte arrays
most of the time. Key comparison, for example decorated key compare, it is either done with
unsafe operation taking 8 bytes at a time, or pure java operation comparing byte by byte.
This can be optimized with new JDK9 APIs on modern CPUs.
> Please let us know your feedback. At the meantime, we will submit a patch with performance
studies in couple of weeks.
> Thanks,
> Yingqi Lu

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message