[
https://issues.apache.org/jira/browse/GROOVY-6228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17757467#comment-17757467
]
Paul King commented on GROOVY-6228:
-----------------------------------
This is an area we haven't looked at for a while. With virtual threads on the
horizon, I would be happy to add functionality here if something sensible can
be devised. I added the 'contrib' label. It is the kind of thing which may not
need a lot of Groovy knowledge but someone with an interest in that area could
work on such an enhancement.
> 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
> Labels: contrib
>
> 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)