swamirishi opened a new pull request, #9552:
URL: https://github.com/apache/ozone/pull/9552

   ## What changes were proposed in this pull request?
   Completely get rid of byte array operations for PUT and DELETE from 
RDBBatchOperation. A direct byte buffer copy can be still performed even if a 
byte array is sent from the table interface. Since the underlying rocksdb 
interface is going to perform the same buffer copy on the JNI side i.e. copying 
heap to off heap memory. Thus it would be more optimal to just copy it to 
direct byte buffer and get rid of the byte array for gc. This directByteBuffer 
can be now used for ByteWise comparisons which would be much faster on the 
native side done in 
[HDDS-14238](https://issues.apache.org/jira/browse/HDDS-14238)
   
   P.S. this cannot be done for delete range yet as there is no direct byte 
buffer api in rocksdb yet. This tries to address the issue
   https://github.com/facebook/rocksdb/pull/14197
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-14166
   
   ## How was this patch tested?
   Updated existing unit tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to