perf(engine): replace LINQ Where closure with inline filter in MetadataDependencyExpander BFS by thomhurst · Pull Request #6084 · thomhurst/TUnit (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Conversation
…taDependencyExpander BFS
The Where lambda captured the per-iteration local current, allocating a closure on every BFS loop iteration plus a deferred iterator on top. Replace it with a flag-gated inline class-type check in the existing candidate foreach, eliminating both allocations. Behavior is identical.
Closes #6051
[](/apps/claude)
thomhurst deleted the perf/issue-6051-metadatadependencyexpander branch
This was referenced
May 29, 2026
This was referenced
Jun 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})