Skip to content

Reduce closure allocations in DocumentAnalysisExecutor#81317

Merged
ToddGrun merged 1 commit intodotnet:mainfrom
ToddGrun:dev/toddgrun/ReduceClosureAllocationsInDocumentAnalysisExecutor
Nov 18, 2025
Merged

Reduce closure allocations in DocumentAnalysisExecutor#81317
ToddGrun merged 1 commit intodotnet:mainfrom
ToddGrun:dev/toddgrun/ReduceClosureAllocationsInDocumentAnalysisExecutor

Conversation

@ToddGrun
Copy link
Contributor

@ToddGrun ToddGrun commented Nov 18, 2025

  1. Short-circuit out if no diagnostics
  2. Call the args overload of WhereAsArray to avoid closure allocation

Small, but simple, perf win:
image

1) Short-circuit out if not diagnostics
2) Call the args overload of WhereAsArray to avoid closure allocation
@ToddGrun ToddGrun requested a review from a team as a code owner November 18, 2025 19:38
@ToddGrun ToddGrun changed the title Reduce clousre allocations in DocumentAnalysisExecutor Reduce closure allocations in DocumentAnalysisExecutor Nov 18, 2025
@ToddGrun ToddGrun merged commit 088bd88 into dotnet:main Nov 18, 2025
27 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Nov 18, 2025
@davidwengier davidwengier modified the milestones: Next, 18.3 Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants