You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Anton Vinogradov (Jira)" <ji...@apache.org> on 2026/07/31 13:58:00 UTC

[jira] [Updated] (IGNITE-28122) Message serialization code optimizations: get rid of excessive buffer size checks

     [ https://issues.apache.org/jira/browse/IGNITE-28122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anton Vinogradov updated IGNITE-28122:
--------------------------------------
    Fix Version/s: 2.19

> Message serialization code optimizations: get rid of excessive buffer size checks
> ---------------------------------------------------------------------------------
>
>                 Key: IGNITE-28122
>                 URL: https://issues.apache.org/jira/browse/IGNITE-28122
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Sergey Chugunov
>            Priority: Minor
>              Labels: IEP-132, ise
>             Fix For: 2.19
>
>
> Code-generated serialization mechanism uses the same buffer size checks on every field write just like the previous serialization mechanism.
> Right now fields of a message are written to the output stream in the same order they are declared in the message class. That's why message serializer has to perform buffer size checks for each individual field as it doesn't have any information about the size of the next field.
> But if one reorders the fields so that all fields of the same primitive type are written in one batch, it is possible to perform buffer size check only once. If number of fields and their type is known, serializer could ensure the space in the buffer in one check. This would allow to save some CPU cycles.



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