[
https://issues.apache.org/jira/browse/GROOVY-12036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18084005#comment-18084005
]
ASF GitHub Bot commented on GROOVY-12036:
-----------------------------------------
testlens-app[bot] commented on PR #2558:
URL: https://github.com/apache/groovy/pull/2558#issuecomment-4560638644
## ✅ All tests passed ✅
🏷️ Commit: e5adeb3c4a7349fdf24a6559ae8b38967ed7313e
▶️ Tests: 99964 executed
⚪️ Checks: 30/30 completed
---
_Learn more about TestLens at [testlens.app](https://testlens.app)._
> 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
>
> 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)