-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage/cmdq: remove parent pointers and position fields
This commit rips out `node.parent` and `node.pos`. These won't work with a copy-on-write strategy. This makes the iterator code a little more complicated because the iterator now needs to maintain a stack of nodes and positions. We avoid any allocations for this stack for trees up to height 4 (~130k items) Because of this, the change does not seem to have any effect on the benchmarks. Theoretically, it should actually speed up mutations to the tree. Release note: None
- Loading branch information
1 parent
ebec027
commit 4a02b8c
Showing
2 changed files
with
69 additions
and
82 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
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