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

Make YoungAndroidPalettePanel a singleton #3170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SusanRatiLane
Copy link
Contributor

Performance improvement by @ewpatton:

Creating a YaFormEditor or a YaBlocksEditor takes roughly between 250-300 ms on a relatievly powerful laptop. Most of this time is spent in constructing the YoungAndroidPalettePanel (which the YaBlocksEditor doesn't even make use of). This change makes it so that there is a single YoungAndroidPalettePanel that uses a model-view-controller approach to render the current editor's component database rather than constructing an instance per-editor. This reduces the creation of editors down to around 10 ms or less.

Change-Id: I8cd301384afd673ff870664dcb1d5698e200e9ea

Creating a YaFormEditor or a YaBlocksEditor takes roughly between
250-300 ms on a relatievly powerful laptop. Most of this time is spent
in constructing the YoungAndroidPalettePanel (which the YaBlocksEditor
doesn't even make use of). This change makes it so that there is a
single YoungAndroidPalettePanel that uses a model-view-controller
approach to render the current editor's component database rather than
constructing an instance per-editor. This reduces the creation of
editors down to around 10 ms or less.

Change-Id: I8cd301384afd673ff870664dcb1d5698e200e9ea
@SusanRatiLane SusanRatiLane requested a review from a team April 18, 2024 16:13
@SusanRatiLane SusanRatiLane added this to the ai2-test milestone May 8, 2024
@jisqyv jisqyv removed this from the ai2-test milestone May 15, 2024
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