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

Stop allocating two RawMouseActions[] arrays in PreNotifyInput #4755

Merged
merged 1 commit into from
Aug 17, 2021

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 fabiant3, ryalanms and SamBent 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