[
https://issues.apache.org/jira/browse/IGNITE-22375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aleksey Plekhanov updated IGNITE-22375:
---------------------------------------
Description: 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 there is 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. (was: 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. )
> 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
> Priority: Major
> Labels: ise
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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 there is 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)