[ 
https://issues.apache.org/jira/browse/ARTEMIS-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16377390#comment-16377390
 ] 

ASF GitHub Bot commented on ARTEMIS-1702:
-----------------------------------------

Github user michaelandrepearce commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1895
  
    @franz1981  i assume the perf stats you mentioned on the pre-cursor PR to 
this are still the same:
    
    master:
    ConcurrentLongHashMapThroughput.randomGetPutRemove           50       
100000  thrpt   60  26906004.642 ± 1014602.753  ops/s
    
    plain load size:
    ConcurrentLongHashMapThroughput.randomGetPutRemove           50       
100000  thrpt   60  29136460.289 ± 604244.629  ops/s
    



> ConcurrentLongHashMap and ConcurrentLongHashSet should avoid volatile set 
> cost on put/remove
> --------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1702
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1702
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 2.5.0
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> ConcurrentLongHashSet/HashMap are making use of unecessary volatile store of 
> size/capacity for modifier methods. 
> The current JVM implementation of volatile store for multicore x86 is making 
> use of a StoreLoad barrier for this operation: the most expensive one.
> These volatile stores could be replaced by plain stores/lazySet ones with no 
> effects on the correctness of those methods.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to