Cleanup of resources in ResourceRegistryStandardImpl allocates many Iterators

Description

This class is tracking resources in small collections, and nested collections. When a statement is closed we need two levels of iteration; using a for loop on Iterator is too expensive, while a forEach on lambda would be more effective - even though the lambda is more expensive to initialize, but that's a one off cost.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Priority

Minor
Configure