Skip to content

Conversation

@Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented Jan 12, 2020

A tiny one. The lock token is only ever used as a Boolean but passing it as an object forces boxing to occur on each call. This just strongly types the methods that use it so they take bool.

Copy link
Contributor

@David-Engel David-Engel left a comment

Choose a reason for hiding this comment

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

LGTM

@cheenamalhotra cheenamalhotra added the Performance 📈 Issues that are targeted to performance improvements. label Feb 5, 2020
@cheenamalhotra cheenamalhotra added this to the 2.0.0-preview2 milestone Feb 5, 2020
@cheenamalhotra cheenamalhotra merged commit 17eb766 into dotnet:master Feb 5, 2020
@Wraith2 Wraith2 deleted the perf-typelocktoken branch February 5, 2020 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Performance 📈 Issues that are targeted to performance improvements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants