[ 
https://issues.apache.org/jira/browse/GROOVY-12036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King resolved GROOVY-12036.
--------------------------------
    Fix Version/s: 6.0.0-alpha-2
       Resolution: Fixed

> GDK: cache Collectors instances in StreamGroovyMethods and 
> ParallelCollectionExtensions
> ---------------------------------------------------------------------------------------
>
>                 Key: GROOVY-12036
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12036
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 6.0.0-alpha-2
>
>
> Cache Collectors.toList() and Collectors.toSet() as static singletons in 
> StreamGroovyMethods and ParallelCollectionExtensions, eliminating per-call 
> collector allocation in 9 GDK call sites.
> A benefit in Eclipse Collections as noted here:
> https://donraab.medium.com/counting-and-collecting-collectors-d69b7c9aaca0
> Groovy is not a collections library but this is a very minor improvement with 
> no downside.



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

Reply via email to