perf(engine): replace LINQ Where closure with inline filter in MetadataDependencyExpander BFS by thomhurst · Pull Request #6084 · thomhurst/TUnit (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@thomhurst

@thomhurst

…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

[claude[bot]](/apps/claude)

@thomhurst thomhurst deleted the perf/issue-6051-metadatadependencyexpander branch

May 28, 2026 19:39

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 }})