willnationsdev / log

A log of my ongoing and planned development efforts.
MIT License
0 stars 0 forks source link

Refactor CreateDialog for optimization #33

Open willnationsdev opened 5 years ago

willnationsdev commented 5 years ago
  1. Find out if there is a way to hide/show certain elements of the Tree without having to completely delete them. If not, implement a way to do this.
  2. Do not regenerate the Tree when opening the CreateDialog or updating the search text. Instead, only update it when script classes are updated (since that's the only time when the Tree will change anyway).
  3. Dynamically hide/show elements based on whether they are a subsequence of the typed text.

Not having to recompute an entirely new tree...

  1. when the dialog is opened speeds up pop-up time and makes it feel less laggy
  2. when typing each search text character speeds up re-rendering time (no inheritance checks or filter checks needed) and makes it feel less laggy.