Skip to content

refactor: optimize dashboard widget selection#3132

Open
tracy-french wants to merge 10 commits intorcfrom
refactor-widget-selection
Open

refactor: optimize dashboard widget selection#3132
tracy-french wants to merge 10 commits intorcfrom
refactor-widget-selection

Conversation

@tracy-french
Copy link
Copy Markdown
Contributor

@tracy-french tracy-french commented Mar 20, 2025

Overview

This change refactors widget selection, and the related code which depends on it, such as gestures, copy/paste, etc., to only rely on widget IDs, instead of entire widget instance objects. This provides a small, yet noticeable performance improvement due to the elimination of referential purity concerns causing cascading re-renders on the code which depends on selected widgets. Performance gains may be fully realized by ensuring comprehensive memoization of dependent components and pushing the selection state down into leaf node components where actually utilized.

Legal

This project is available under the Apache 2.0 License.

@tracy-french tracy-french force-pushed the refactor-widget-selection branch 2 times, most recently from d70b790 to 32219bf Compare March 20, 2025 21:56
@tracy-french tracy-french changed the title refactor: dashboard widget selection refactor: optimize dashboard widget selection Mar 20, 2025
@tracy-french tracy-french force-pushed the refactor-widget-selection branch from 32219bf to 8f552ec Compare March 20, 2025 22:16
@tracy-french tracy-french force-pushed the refactor-widget-selection branch from 8f552ec to 48b4607 Compare March 21, 2025 17:30
@tracy-french tracy-french marked this pull request as ready for review March 21, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants