-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This is as cherry-pick of #21570 Currently flex-tree fields tend to be leaked until the nodes they are part of are disposed (if ever) or the context is disposed. Due to this, allocating tons of separate objects for the same field is really bad. This change reuses flex tree fields in most cases, mitigating this issue. This was observed to make bubble bench >10x faster, however most of that win was due to avoiding the O(number of leaked copies of the field) creation cost in the event subscription logic which is being removed independently. Co-authored-by: Craig Macomber (Microsoft) <[email protected]>
- Loading branch information
1 parent
28d3d0f
commit 9ae3f2e
Showing
1 changed file
with
58 additions
and
7 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