Sumit Agrawal created HDDS-12582:
------------------------------------

             Summary: TypedTable support custom ValueCodec
                 Key: HDDS-12582
                 URL: https://issues.apache.org/jira/browse/HDDS-12582
             Project: Apache Ozone
          Issue Type: Improvement
          Components: Ozone Manager
            Reporter: Sumit Agrawal
            Assignee: Sumit Agrawal
         Attachments: image-2025-03-13-13-03-28-403.png

deserialization of rocksdb value via Codec involves below steps:
 # convert byte[] -> protobuf object
 # protobuf -> OM object

eg: for keyInfo

byte[] -> KeyInfo -> OmKeyInfo

 

*The customized ValueCodec can be used for performance improvement like 
OMKeyInfo,*
 * avoid conversion of AclList (as most of usecase for read do not used this)
 * avoid conversion of location, acl and other cases (can be used for most of 
cases where these are not used like MPU where location size can be large)

So using this, performance can be optimized performance in various read usages.

 

 

Below flamegraph shows for aclList (which is not used normally):

byte[] -> protobuf : 2.6% (let x time) and protobuf to OMKeyInfo 5.04% (takes 
2x)

 

!image-2025-03-13-13-03-28-403.png|width=573,height=276!

 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to