[
https://issues.apache.org/jira/browse/ARTEMIS-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16136749#comment-16136749
]
ASF GitHub Bot commented on ARTEMIS-1357:
-----------------------------------------
Github user franz1981 commented on the issue:
https://github.com/apache/activemq-artemis/pull/1478
@clebertsuconic Yep, but I'm sure that similar optimizations (if not
already present) could be added on the other protocols too...or there is not
worth to improve it further?
I'm found these while testing other PRs I've done...
> TypedProperties encode/decode improvement
> -----------------------------------------
>
> Key: ARTEMIS-1357
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1357
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Broker
> Reporter: Francesco Nigro
> Assignee: Francesco Nigro
>
> In the TypedProperties decode path are possible several improvements:
> * avoid resizing (with rehashing) of the properties map
> * avoid any allocation of BooleanValue and NullValue
> In the TypedProperties encode path is possible to use internal looping using
> Java 8 lambdas:
> * to avoid the allocation of the Entries collection + iterator
> * to increase the chance of loop unrolling during the iteration
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)