[ 
https://issues.apache.org/jira/browse/ARTEMIS-4810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Galkin Alexey updated ARTEMIS-4810:
-----------------------------------
    Description: 
[In line 
41|https://github.com/apache/activemq-artemis/blob/main/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/reload/ReloadManagerImpl.java#L41],
 when creating an associative array registry, you can use java.net.URI instead 
of java.net.URL to avoid the performance penalty

{code:java}

private final Map<URL, ReloadRegistry> registry = new HashMap<>();\{code}

 

Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author Alexey Galkin.

  was:
[In line 
41|https://github.com/apache/activemq-artemis/blob/main/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/reload/ReloadManagerImpl.java#L41],
 when creating an associative array registry, you can use java.net.URI instead 
of java.net.URL to avoid the performance penalty

 

{code:java}private final Map<URL, ReloadRegistry> registry = new 
HashMap<>();\{code}

 

Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author Alexey Galkin.


> Maps of URLs can reduce the performance in ReloadManagerImpl.java
> -----------------------------------------------------------------
>
>                 Key: ARTEMIS-4810
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4810
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Galkin Alexey
>            Priority: Minor
>
> [In line 
> 41|https://github.com/apache/activemq-artemis/blob/main/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/reload/ReloadManagerImpl.java#L41],
>  when creating an associative array registry, you can use java.net.URI 
> instead of java.net.URL to avoid the performance penalty
> {code:java}
> private final Map<URL, ReloadRegistry> registry = new HashMap<>();\{code}
>  
> Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
> Author Alexey Galkin.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to