groovy/groovy-core — pull request #514 by candrews (2014-09-08 19:53:19+00:00)
Title: GROOVY-7062: Use low concurrencyLevel in rarely updated maps

The maps in ExpandoMetaClass are very rarely updated, and when they are, it's usually not by multiple concurrent threads. Therefore, using a lower concurrency level would result in less memory being used with no performance penalty. Since there are so many ExpandoMetaClass instances at runtime, this per instance savings is significant for a whole application.

Since writes are so rare for these maps, I think a concurrencyLevel of 1 is most appropriate.

http://jira.codehaus.org/browse/GROOVY-7062