aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-02 19:01:15 +0000
committerRichard M. Stallman1994-01-02 19:01:15 +0000
commit4314dea4b4e7a9b2f88dac84744ae5145ee07f81 (patch)
tree3fc633411e8479109483d045de73dbdb785fb8f2 /src/syntax.c
parent7ac78c9ad4065b5abba9915320b2a969466d55a1 (diff)
downloademacs-4314dea4b4e7a9b2f88dac84744ae5145ee07f81.tar.gz
emacs-4314dea4b4e7a9b2f88dac84744ae5145ee07f81.zip
(rotate_right, rotate_left): Simplify
total_length calculation. Minimize pointer dereferencing. (balance_an_interval): Remove recursive rebalancing. Rebalance precisely when imbalanced. If a rotation is done, rebalance only the node which may have become unbalanced. Iterate until the current node is balanced. (balance_possible_root_interval): New function. (balance_intervals): Move the interation into rebalance_an_interval. (balance_intervals_internal): New subroutine of balance_intervals. (split_interval_right, split_interval_left): Speed up by not checking LEAF_INTERVAL_P. (split_interval_right, split_interval_left, find_interval, adjust_intervals_for_insertion, graft_intervals_into_buffer): Add dynamic rebalancing anywhere a node may become unbalanced. (graft_intervals_into_buffer, copy_intervals): No longer any need to do a full rebalance as the tree stays balanced.
Diffstat (limited to 'src/syntax.c')
0 files changed, 0 insertions, 0 deletions