Skip to content

Pipelines remove lock from uncontended path#36955

Closed
benaadams wants to merge 1 commit into
dotnet:masterfrom
benaadams:pipelines-locks
Closed

Pipelines remove lock from uncontended path#36955
benaadams wants to merge 1 commit into
dotnet:masterfrom
benaadams:pipelines-locks

Conversation

@benaadams
Copy link
Copy Markdown
Member

@benaadams benaadams commented May 24, 2020

Simpler version of #36934 as can achieve same effect by just removing locks from new data initialization rather than trying to remove it for all writes

Drops the lock for common path through the highlighted code paths for Json TE:

image

After effect; allocation under lock call count much reduced
image

@benaadams benaadams closed this May 24, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants