Descriptioncommand_buffer: Implement IdAllocator by recording ranges in an AVL tree
Implement IdAllocator by keeping track of used id ranges instead of
individual ids. This should make allocating big amount of ids scale a
bit better.
Store the ranges in a tree where nodes store the range as closed
interval (min, max). The tree is an AVL tree with the min entry as the
key. All represented ranges are maximal, eg. if the node is in the tree,
it represents the complete contiguous id range starting at |min| and
ending at |max|, inclusive.
BUG=344330
Patch Set 1 #
Messages
Total messages: 6 (3 generated)
|