Skip to content

Change DocumentAnalysisExecutor to use ValueTask#80293

Merged
ToddGrun merged 1 commit intodotnet:mainfrom
ToddGrun:dev/toddgrun/DocumentAnalysisExecutor_UseValueTask
Sep 16, 2025
Merged

Change DocumentAnalysisExecutor to use ValueTask#80293
ToddGrun merged 1 commit intodotnet:mainfrom
ToddGrun:dev/toddgrun/DocumentAnalysisExecutor_UseValueTask

Conversation

@ToddGrun
Copy link
Copy Markdown
Contributor

@ToddGrun ToddGrun commented Sep 16, 2025

DocumentAnalysisExecutor has several Task returning methods that are showing up as decent allocators in the speedometer profile.

Verified in the below test insertion that switching over to ValueTask removes those allocations. The CPU profile of the changed methods looks unchanged.

Test insertion pipeline run: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=12391841&view=results

image

In draft mode, until I get speedometer numbers to make sure this has the desired effect.
@ToddGrun ToddGrun changed the title *** WIP: Change DocumentAnalysisExecutor to use ValueTask Change DocumentAnalysisExecutor to use ValueTask Sep 16, 2025
@ToddGrun ToddGrun marked this pull request as ready for review September 16, 2025 20:53
@ToddGrun ToddGrun requested a review from a team as a code owner September 16, 2025 20:53
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