Skip to content

2023-July-10 - 2.6.14399

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 10 Jul 02:56
31b69a6
Rewrite findTargets for better performance. (#11754)

* Rewrite findTargets for better performance.

- Avoids O(n^2) destroyer checks.
- Avoids an expensive removeAll() call.
- Uses a single stream filter to process, removing an unnecessary intermediate collection in the common case when no destroyers are present.

Note: This was showing up in performance profiles.

* Better variable name.