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

[Windows] Set CanDrag and AllowDrop only if needed #22640

Conversation

MartyIX
Copy link
Contributor

@MartyIX MartyIX commented May 24, 2024

Description of Change

This PR makes it so that _container.CanDrag and _container.AllowDrop are not set unnecessarily. The PR assumes that most of UI elements are not draggable and droppable by default.

Speedscope

image

-> ~9% improvement

Issues Fixed

Contributes to #21787

@MartyIX MartyIX requested a review from a team as a code owner May 24, 2024 11:34
@MartyIX MartyIX requested review from Eilon and jfversluis May 24, 2024 11:34
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 24, 2024
@MartyIX MartyIX added platform/windows 🪟 t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf) labels May 24, 2024
@MartyIX MartyIX changed the title Set CanDrag and AllowDrop only if needed [Windows] Set CanDrag and AllowDrop only if needed May 24, 2024
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@MartyIX MartyIX requested review from jonathanpeppers and Foda and removed request for Eilon and jfversluis May 24, 2024 11:57
@MartyIX
Copy link
Contributor Author

MartyIX commented May 27, 2024

@jsuarezruiz Are the test failures real or not?

@MartyIX
Copy link
Contributor Author

MartyIX commented May 31, 2024

@Foda Could you take a look please?

@PureWeen PureWeen added the area-gestures Gesture types label May 31, 2024
@MartyIX
Copy link
Contributor Author

MartyIX commented Jun 1, 2024

@PureWeen is this good to merge?

@rmarinho rmarinho merged commit 6d4d7bd into dotnet:main Jun 4, 2024
44 of 49 checks passed
@MartyIX MartyIX deleted the feature/2024-05-24-Windows-Drag-drop-optimization branch June 4, 2024 11:29
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-gestures Gesture types community ✨ Community Contribution fixed-in-8.0.60 fixed-in-9.0.0-preview.5.24307.10 platform/windows 🪟 t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants