Skip to content

Pr/epc39 quadratic enumeration#322

Closed
SergeyTeplyakov wants to merge 3 commits into
masterfrom
pr/epc39-quadratic-enumeration
Closed

Pr/epc39 quadratic enumeration#322
SergeyTeplyakov wants to merge 3 commits into
masterfrom
pr/epc39-quadratic-enumeration

Conversation

@SergeyTeplyakov
Copy link
Copy Markdown
Owner

No description provided.

Detects re-enumeration of IEnumerable<Task> / IEnumerable<Task<T>>, which silently restarts the task producer and creates a new unrelated set of tasks. Includes shared EnumerationMethods helper used by future enumeration analyzers.
Flags iterating the same enumerable inside a loop, turning O(N) walks into O(N*M). Suggests materializing the source with .ToList()/.ToArray() before the loop.
@SergeyTeplyakov SergeyTeplyakov deleted the pr/epc39-quadratic-enumeration branch May 20, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant