Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6228

Add asConcurrent(List/Map) method to Collections

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • groovy-jdk

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdeleeuw Thierry De Leeuw
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: