-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Make a single allocated memory block for the whole tree.
Pros:
- More performant memory layout in regards to memory prefetching
- This means (probably) faster linear iteration of the tree
- Fewer memory allocations on insertions
- Allows for the possibility of creating a tree from a known/static dataset
Cons:
- More difficult memory management
- Increases unused memory (can possibly be mitigated if we allow an argument for how many items are expected to be in the tree)
Strategies
- Place everything in a blob pointing to a sequence of {node, elem [2*t]}
- Have seperate arrays for nodes and elements respectively
1 seems bothersome but easy, however 2 might be easier to implement with the current state of things. Also 2 is probably nicer to work with.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request