Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use batching on GenerateServiceMetadataSources Output #111

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Oct 6, 2023

Batching on the Outputs of GenerateServiceMetadataSources results in many, many calls to this target. The target itself is working in bulk and isn't doing anything that needs this output batching, so all that's happening is that more time is spent in the build performing needless target calls.

Changing this to return the Item list directly results in one call, with one pass through the ReferencePathWithRefAssemblies items.

Before:
image

After:
image

I verified that the generated ServiceMetadataSource items were equivalent before and after as well.

Batching on the Outputs of GenerateServiceMetadataSources results in many, many calls to this target. The target itself is working in bulk and isn't doing anything that needs this output batching, so all that's happening is that more time is spent in the build performing needless target calls.

Changing this to return the Item list directly results in one call, with one pass through the `ReferencePathWithRefAssemblies` items.
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me. Thanks for the fix @baronfel!

@davidfowl davidfowl merged commit a7ec373 into dotnet:main Oct 7, 2023
4 checks passed
@baronfel baronfel deleted the patch-1 branch October 7, 2023 17:28
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants