Skip to content

Setting weak reference target instead of field #6894

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

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

YohDeadfall
Copy link
Contributor

What does the pull request do?

Reduces memory allocations by changing the target of a weak reference used to keep the last pointer pressed source.

What is the current behavior?

Allocate a new weak reference each time pointer pressed happens.

What is the updated/expected behavior with this PR?

Making the field keeping a weak reference to be readonly and set the target instead.

@kekekeks kekekeks merged commit 40128c6 into AvaloniaUI:master Nov 9, 2021
danwalmsley pushed a commit that referenced this pull request Nov 23, 2021
Setting weak reference target instead of field
@YohDeadfall YohDeadfall deleted the optimize-gestures branch May 26, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants