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

Jochen Theodorou commented on GROOVY-6228:
------------------------------------------

[~paulk] DGM is more your area, what should we do here?

> Add asConcurrent(List/Map) method to Collections
> ------------------------------------------------
>
>                 Key: GROOVY-6228
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6228
>             Project: Groovy
>          Issue Type: Improvement
>          Components: groovy-jdk
>            Reporter: Thierry De Leeuw
>            Priority: Minor
>
> Wouldn't it be better to replace/provide a new methods to get a 
> ConcurrentHashMap, instead of a collections.SynchronizedMap as it is a lot 
> more efficient?
> If the "original" map is a TreeMap, of course, there is no equivalent in 
> Concurrent, so fallback to Synchronized seems a good compromise.



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

Reply via email to