[
https://issues.apache.org/jira/browse/ARTEMIS-2720?focusedWorklogId=424401&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-424401
]
ASF GitHub Bot logged work on ARTEMIS-2720:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 17/Apr/20 20:28
Start Date: 17/Apr/20 20:28
Worklog Time Spent: 10m
Work Description: clebertsuconic commented on pull request #3089:
ARTEMIS-2720 Optimize HierarchicalObjectRepository
URL: https://github.com/apache/activemq-artemis/pull/3089#discussion_r410453860
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java
##########
@@ -172,7 +172,12 @@ private void addMatch(final String match, final T value,
final boolean immutable
lock.writeLock().lock();
try {
String modifiedMatch = matchModifier.modify(match);
- clearCache();
+ // an exact match (i.e. one without wildcards) won't impact any other
matches so no need to clear the cache
+ if (usesWildcards(modifiedMatch)) {
Review comment:
I see.. I thought the other way around. we actually cache the result, not
the wildcards.
so, this is fine.
I will merge a test I wrote as part of this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: 424401)
Time Spent: 1h (was: 50m)
> Optimize HierarchicalObjectRepository
> -------------------------------------
>
> Key: ARTEMIS-2720
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2720
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Time Spent: 1h
> Remaining Estimate: 0h
>
> There are a couple of simple optimizations which would make
> {{org.apache.activemq.artemis.core.settings.impl.HierarchicalObjectRepository}}
> faster, especially when used with lots of exact matches.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)