activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franz1981 <>
Subject [GitHub] activemq-artemis pull request #2427: ARTEMIS-2170 Optimized CoreMessage's ch...
Date Mon, 12 Nov 2018 18:02:15 GMT
Github user franz1981 commented on a diff in the pull request:
    --- Diff: artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/
    @@ -318,6 +320,33 @@ public synchronized boolean containsProperty(final SimpleString key)
    +   public synchronized boolean cleanupInternalProperties(Predicate<SimpleString>
propertyNamePredicate) {
    +      if (!internalProperties) {
    --- End diff --
    I have pushed a new version of the change that's using a private subclass of 'TypedProperties'
where needed to allow atomic updates of the `internalProperties` flag: I'm not very about
about the factory method on 'CoreMessage' to allow the client messages to not use that subclass:
this is an additional optimisation given that the original code where always using 'TypedProperties'
that where chacking on each added property if it was an 'internal" one.


View raw message