Skip to content

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

Merged
rmarinho merged 1 commit into
dotnet:mainfrom
MartyIX:feature/2024-05-24-Windows-Drag-drop-optimization
Jun 4, 2024
Merged

[Windows] Set CanDrag and AllowDrop only if needed#22640
rmarinho merged 1 commit into
dotnet:mainfrom
MartyIX:feature/2024-05-24-Windows-Drag-drop-optimization

Conversation

@MartyIX
Copy link
Copy Markdown
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 perf/general 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
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

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

MartyIX commented May 27, 2024

@jsuarezruiz Are the test failures real or not?

@MartyIX
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

MartyIX commented Jun 1, 2024

@PureWeen is this good to merge?

@rmarinho rmarinho merged commit 6d4d7bd into dotnet:main Jun 4, 2024
@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 perf/general The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf) platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants