Under what circumstances does Groovy use AbstractConcurrentMap?
Posted
by Electrons_Ahoy
on Stack Overflow
See other posts from Stack Overflow
or by Electrons_Ahoy
Published on 2009-11-19T23:48:29Z
Indexed on
2010/03/17
17:01 UTC
Read the original article
Hit count: 257
(Specifically, org.codehaus.groovy.util.AbstractConcurrentMap)
While doing some profiling of our application thats mixed Java/Groovy, I'm seeing a lot of references to the AbstractConcurrentMap class, none of which are explicit in the code base. Does groovy use this class when maps are instantiated in the groovy dynamic def myMap = [:]
style? Are there rules somewhere about when groovy chooses to use this as opposed to, say, java.util.HashMap?
And does anyone have any performance information comparing the two? My rough "eyeball check" says that AbstractConcurrentMap seems to be much slower - anyone know if I'm right?
© Stack Overflow or respective owner