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

Nikolay Izhikov commented on IGNITE-27086:
------------------------------------------

[~timonin.maksim] I created a benchmark to measure BinaryWriterExImpl 
performance. With the HashMap of 100_000 keys I gain around 15% performance 
with the patch that not create instance of writer on each map key, value.

Please, take a look.

> BinaryWriter is created for every a map entry
> ---------------------------------------------
>
>                 Key: IGNITE-27086
>                 URL: https://issues.apache.org/jira/browse/IGNITE-27086
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Maksim Timonin
>            Assignee: Nikolay Izhikov
>            Priority: Major
>              Labels: ise
>         Attachments: WritingBigMapReproducer.java
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> During serializing maps BinaryWriterExImpl#writeMap is called. For every key 
> and value it calls BinaryWriterExImpl#writeObject. Every such call creates 
> new BinaryWriterExImpl.
> It leads to populating jvm heap with similar objects. Especially for big maps.
> See example in the attach, when big map is created as argument for a 
> ComputeTask.



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

Reply via email to