You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Francesco Nigro (JIRA)" <ji...@apache.org> on 2019/06/14 15:44:00 UTC
[jira] [Commented] (QPIDJMS-461)
JmsMessageIDBuilder::createMessageID can save StringBuilder allocations
[ https://issues.apache.org/jira/browse/QPIDJMS-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864198#comment-16864198 ]
Francesco Nigro commented on QPIDJMS-461:
-----------------------------------------
This is the allocation flamgraphs that shows (in violet) the StringBuilder instances created:
!screenshot-1.png!
> JmsMessageIDBuilder::createMessageID can save StringBuilder allocations
> -----------------------------------------------------------------------
>
> Key: QPIDJMS-461
> URL: https://issues.apache.org/jira/browse/QPIDJMS-461
> Project: Qpid JMS
> Issue Type: Improvement
> Affects Versions: 0.44.0
> Reporter: Francesco Nigro
> Priority: Minor
> Attachments: screenshot-1.png
>
>
> JmsMessageIDBuilder::createMessageID doesn't seem able to correctly perform escape analysis on StringBuilder, allocating many of them.
> The intermediate StringBuilder could be saved into a thread local pool instead, saving unnececessary allocations.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org