Dmitry Konstantinov created CASSANDRA-21725:
-----------------------------------------------

             Summary: Use SWAR for fast ASCII check in 
UTF8Serializer.UTF8Validator
                 Key: CASSANDRA-21725
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21725
             Project: Apache Cassandra
          Issue Type: Improvement
          Components: Local/Other
            Reporter: Dmitry Konstantinov
            Assignee: Dmitry Konstantinov


To speed up the ASCII check path in UTF8Serializer.UTF8Validator, we can use 
SWAR.
Another option would be to use vector API but we have to support older versions 
of JDK + vector API is still in incubator..
Auto-vectorization unfortunately does not work for this logic in JDK21.
In preliminary microbenchmarks I have SWAR and vector API produces similar 
results.

Evaluated options: 
https://github.com/netudima/java-perf-tests/tree/main/src/main/java/org/github/netudima/perf/tests/utf8



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to