[PATCH v3 7/9] rbtree: faster augmented rbtree manipulation

2012-08-20 Thread Michel Lespinasse
Introduce new augmented rbtree APIs that allow minimal recalculation of augmented node information. A new callback is added to the rbtree insertion and erase rebalancing functions, to be called on each tree rotations. Such rotations preserve the subtree's root augmented value, but require

[PATCH v3 7/9] rbtree: faster augmented rbtree manipulation

2012-08-20 Thread Michel Lespinasse
Introduce new augmented rbtree APIs that allow minimal recalculation of augmented node information. A new callback is added to the rbtree insertion and erase rebalancing functions, to be called on each tree rotations. Such rotations preserve the subtree's root augmented value, but require