You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vyacheslav Daradur (JIRA)" <ji...@apache.org> on 2017/07/17 09:31:00 UTC

[jira] [Comment Edited] (IGNITE-5097) BinaryMarshaller should write ints in "varint" encoding where it makes sense

    [ https://issues.apache.org/jira/browse/IGNITE-5097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16089542#comment-16089542 ] 

Vyacheslav Daradur edited comment on IGNITE-5097 at 7/17/17 9:30 AM:
---------------------------------------------------------------------

[~vozerov], why do you think that?

As I understand the writing in varint - will be the main approach in future releases.
May be this task is part of design of a global feature?

BTW: Are there clear ways how to manage via {{BinaryConfiguration}} the static methods in the {{BinaryUtils}}?


was (Author: daradurvs):
[~vozerov], why do you think that?

As I understand the writing in varint - will be the main approach in future releases.
May be this task is part of design of a global feature?

BTW: Are there clear ways how to manage via BinaryConfiguration the static methods in the BinaryUtils?

> BinaryMarshaller should write ints in "varint" encoding where it makes sense
> ----------------------------------------------------------------------------
>
>                 Key: IGNITE-5097
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5097
>             Project: Ignite
>          Issue Type: Task
>          Components: general
>    Affects Versions: 2.0
>            Reporter: Vladimir Ozerov
>            Assignee: Vyacheslav Daradur
>              Labels: important, performance
>             Fix For: 2.2
>
>
> There are a lot of places in the code where we write integers for some special purposes. Quite often their value will be vary small, so that applying "varint" format could save a lot of space at the cost of very low additional CPU overhead. 
> Specifically:
> 1) Array/collection/map lengths
> 2) BigDecimal's (usually will save ~6 bytes)
> 3) Strings
> 4) Enum ordinals



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)