maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [maven] gnodet commented on issue #261: [MNG-6697] New fast model interpolator not using reflection
Date Tue, 02 Jul 2019 21:11:18 GMT
gnodet commented on issue #261: [MNG-6697] New fast model interpolator not using reflection
URL: https://github.com/apache/maven/pull/261#issuecomment-507846100
 
 
   > @gnodet
   > The `HashMap` cannot perform better since it is not threadsafe.
   
   There is no concurrent access at all for the `InnerInterpolator` object because it's created
for the duration of the full model interpolation which happens in a single thread and is then
discarded.  The  `InnerInterpolator` does not outlive the `interpolateObject` method.
   
   And fwiw, in a non concurrent access, the HashMap is supposed to perform better than ConcurrentHashMap
because it does not need to care about locking in any way.  
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message