-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize anchorset and flex tree traversal (#22717)
## Description Optimizations based on a profile of BubbleBench. This resulted in about 5% more bubbles (80 vs 76). Given this application's read costs scale with bubbles squared (for the collision logic), contains writes, and most reads are leaf values which are not impacted by this, this seems like a pretty good win. Some real apps could probably show significantly larger gains if they are less leaf heavy or less write heavy.
- Loading branch information
1 parent
c133190
commit 95f0274
Showing
6 changed files
with
366 additions
and
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@fluidframework/tree": minor | ||
"fluid-framework": minor | ||
--- | ||
--- | ||
"section": tree | ||
--- | ||
|
||
Optimize non-leaf field access | ||
|
||
When reading non-leaf children which have been read previously, they are retrieved from cache faster. | ||
Several operations on subtrees under arrays have been optimized, including reading of non-leaf nodes for the first time. | ||
Overall this showed a roughly 5% speed up in a read heavy test application (the BubbleBench example) but gains are expected to vary a lot based on use-case. |
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
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
24 changes: 0 additions & 24 deletions
24
packages/dds/tree/src/feature-libraries/flex-tree/unboxed.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.