Archit Agarwal created CASSANDRA-20724:
------------------------------------------

             Summary: Optimise byte array to hex string conversion 
                 Key: CASSANDRA-20724
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20724
             Project: Apache Cassandra
          Issue Type: Improvement
            Reporter: Archit Agarwal
            Assignee: Archit Agarwal


Current implementation of converting byte array to hex string uses string 
formatting which needs to parse the format ("%02x") for every byte. This takes 
a lot of time and CPU. 
{code:java}
"0x" + x.map("%02x" format _).mkString{code}
Change to standard way using bit operations drastically increases the 
performance. 



--
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