[
https://issues.apache.org/jira/browse/ARTEMIS-2170?focusedWorklogId=186606&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-186606
]
ASF GitHub Bot logged work on ARTEMIS-2170:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 17/Jan/19 22:56
Start Date: 17/Jan/19 22:56
Worklog Time Spent: 10m
Work Description: clebertsuconic commented on pull request #2427:
ARTEMIS-2170 Optimized CoreMessage's checkProperties and
cleanupInternalProperties methods
URL: https://github.com/apache/activemq-artemis/pull/2427#discussion_r248872930
##########
File path:
artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/TypedProperties.java
##########
@@ -318,6 +313,30 @@ public synchronized boolean containsProperty(final
SimpleString key) {
}
}
+ public synchronized boolean removeProperty(Predicate<SimpleString>
propertyNamePredicate) {
Review comment:
I am a bit confused. you said you're optimizing, although this is a new
method. what I am missing?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 186606)
Time Spent: 50m (was: 40m)
> Optimized CoreMessage's checkProperties and cleanupInternalProperties methods
> -----------------------------------------------------------------------------
>
> Key: ARTEMIS-2170
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2170
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Broker
> Reporter: Francesco Nigro
> Assignee: Francesco Nigro
> Priority: Minor
> Time Spent: 50m
> Remaining Estimate: 0h
>
> CoreMessage::checkProperties perform too many volatile read/write and has a
> too big body just to handle exceptional cases, while
> cleanupInternalProperties is called on the hot path of session send, but is
> performing too many synchronized operations and loopup on TypedProperties.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)