-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache actual elements instead of buffering HTML.
This significantly improves performance, since we already create the elements when measuring them, and that effort is now no longer wasted. We must take care to detach, rather than remove, when clearing the text layer, so we can add the elements back later if necessary.
- Loading branch information
Showing
1 changed file
with
64 additions
and
38 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