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

Pavel Tupitsyn commented on IGNITE-15234:
-----------------------------------------

Merged to main: 6ee89ad561113efa123ced3b1240fe2c70ee3e9e

> Thin 3.0: Perf: ByteBuf-based message packer and unpacker
> ---------------------------------------------------------
>
>                 Key: IGNITE-15234
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15234
>             Project: Ignite
>          Issue Type: Improvement
>          Components: thin client
>    Affects Versions: 3.0.0-alpha3
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-alpha4
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Current implementations of *ClientMessagePacker* and *ClientMessageUnpacker* 
> are based on *msgpack-core* library and involve intermediate classes and 
> buffers:
> {code:java}
>     public ClientMessageUnpacker(ByteBuf buf) {
>         super(new InputStreamBufferInput(new ByteBufInputStream(buf)), 
> MessagePack.DEFAULT_UNPACKER_CONFIG);
>         this.buf = buf;
>     }
> {code}
> * MessageUnpacker and MessagePacker classes use internal heap-allocated 
> buffers
> * InputStreamBufferInput uses another buffer
> Netty ByteBuf is efficient by itself, we can implement packer and unpacker 
> directly on top of it without extra buffers and indirection.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to