Skip to content

Conversation

@stephentoub
Copy link
Member

Description

Calls to MouseDevice.PreNotifyInput are allocating two arrays unnecessarily.

image

Customer Impact

Less allocation means less GC means less pauses.

Regression

No

Testing

Just CI

Risk

Minimal. The arrays were simply iterated through and were used for convenience; we can trivially do so with a span instead.

@stephentoub stephentoub requested a review from a team as a code owner June 25, 2021 20:29
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jun 25, 2021
@ghost ghost requested review from SamBent, fabiant3 and ryalanms June 25, 2021 20:29
@ryalanms ryalanms merged commit 1bc136f into dotnet:main Aug 17, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants