[jboss-jira] [JBoss JIRA] (JGRP-2044) RequestCorrelator causes frequent boxing and autoboxing by using a Map<Long, Request>

Bela Ban (JIRA) issues at jboss.org
Mon Jul 25 02:30:00 EDT 2016


     [ https://issues.jboss.org/browse/JGRP-2044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bela Ban closed JGRP-2044.
--------------------------
    Resolution: Won't Fix


I'd need to see concrete data showing that (un)boxing is a performance drag. Please reopen if this is the case, but tbh I don't see how to fix this as per my explanations...

> RequestCorrelator causes frequent boxing and autoboxing by using a Map<Long,Request>
> ------------------------------------------------------------------------------------
>
>                 Key: JGRP-2044
>                 URL: https://issues.jboss.org/browse/JGRP-2044
>             Project: JGroups
>          Issue Type: Enhancement
>            Reporter: Sanne Grinovero
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: RequestCorrelator.java
>
>
> The JFR profiler is highlighting a significant amount of boxing and autoboxing, as the request is is treated as a {{long}} but this is used as an key for the {{Map<Long,Request>}}.
> We could try to either consistently use {{Long}} rather than {{long}}, or even better figure out an optimal data structure to replace the implementation of the Map to not require boxing of the keys.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list