-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(select): rewrite DOM.select with snabbdom-selector
Make use of snabbdom-selector to replace the previous use of document.querySelector(). With this change, the performance test, is running ~15-20FPS faster than prior. Adding features and fixing bugs had led to performance degradation. Currently, on my computer (@TylorS), the performance test is running entirely without a single janky frame to be seen anywhere. BREAKING CHANGE: Before: DOM.select(selector) used document.querySelector() under the hood for ease of use and for it's substanstially more robust css selector engine. After: DOM.selector(selector) now uses snabbdom-selector to match css selectors from the virtual DOM tree for the speed of avoiding the baggage of the DOM. References #4
- Loading branch information
Showing
1 changed file
with
34 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters