[
https://issues.apache.org/jira/browse/HDDS-14238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Swaminathan Balachandran resolved HDDS-14238.
---------------------------------------------
Fix Version/s: 2.2.0
Resolution: Fixed
> Move RDBBatchOperation Byte comparison to native comparison for optimization
> ----------------------------------------------------------------------------
>
> Key: HDDS-14238
> URL: https://issues.apache.org/jira/browse/HDDS-14238
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Swaminathan Balachandran
> Assignee: Swaminathan Balachandran
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.2.0
>
>
> Instead of performing ByteWise comparison on Java side moving the comparison
> to native side would more optimal since most of the transactions are going to
> use direct byte buffers. Here we intend to use the rocksdb Slice to perform
> bytewise comparisons. RocksDB Bytewise comparators also uses the same
> comparator.
> [https://github.com/facebook/rocksdb/blob/c110091d368b8a01b5be36a14198769e60786c05/util/comparator.cc#L36-L38]
> Unfortunately currently in 7.7.3 there is no direct native comparison that
> has been implemented. We can look into contributing to Rocksdb by having a
> JNI implementation for
> [https://github.com/facebook/rocksdb/blob/0bf9079d44eea91afda7151306d3a3439a39511b/java/src/main/java/org/rocksdb/NativeComparatorWrapper.java#L16]
> Till then this is a nice workaround to have.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]