Commit 74019b0
authored
fix: improve DOM processing for the toolbar (#42208)
with recent changes the toolbar went from freezing my browser with the clickmap to taking 20 seconds to process events against the DOM

there is multiple repeated calls to matchEventToElement which traverses the DOM to find a selector
let's introduce a bunch of optimisations since a lot of look-ups could be O(1) against a map
we also show progress as we go, so the user knows what is a-happening
1 parent 24e8ab1 commit 74019b0
File tree
5 files changed
+815
-54
lines changed- .idea
- frontend/src/toolbar
- elements
- stats
5 files changed
+815
-54
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments