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

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

{noformat}
MASTER

Benchmark                                 (key)  (mapType)  (size)  (value)  
Mode  Cnt        Score        Error  Units
JmhMapSerdesBenchmark.mapSerialization  Integer    HashMap  100000  Integer  
avgt   15  2765182.760 ± 230120.913  ns/op

PATCH

Benchmark                                 (key)  (mapType)  (size)  (value)  
Mode  Cnt        Score        Error  Units
JmhMapSerdesBenchmark.mapSerialization  Integer    HashMap  100000  Integer  
avgt   15  2376290.496 ± 251289.373  ns/op
{noformat}

> 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