Aleksey Plekhanov created IGNITE-22375:
------------------------------------------

             Summary: Inefficient serialization of UUIDs in communication 
messages
                 Key: IGNITE-22375
                 URL: https://issues.apache.org/jira/browse/IGNITE-22375
             Project: Ignite
          Issue Type: Bug
            Reporter: Aleksey Plekhanov
            Assignee: Aleksey Plekhanov


We serialize {{long}} and {{int}} data types in communication messages as 
{{varint}} to safe the space. UUID contains two {{long}} components 
{{LeastSignificantBits}} and {{
MostSignificantBits}}, which currently serialized as {{varint}} too. But 
usually UUIDs are generated randomly and in most cases the are no any space 
optimization for random {{long}} values. To store {{long}} as 7 bytes or less 
in {{varint}} format (instead of 8 bytes to store {{long}} as is) it's required 
it's required top 15 bits of {{{}long{}}}. Probability of such outcame for 
random long: 1/32768. 



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

Reply via email to