]> git.ipfire.org Git - thirdparty/bird.git/commit
Replaces the algorithm for building balanced trees.
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 17 Feb 2010 20:53:07 +0000 (21:53 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 17 Feb 2010 21:11:42 +0000 (22:11 +0100)
commitdfd48621d1a54f2beb461fe3847fc4b2a535675e
tree7b6dbfb41496f6b3e3986b92ab0810246ae45b9c
parent14f6aca48037a0653e6bcfa27a4da48e8f962198
Replaces the algorithm for building balanced trees.

Changes the time complexity of the algorithm from O(n^2) to O(n*log(n)).
This speeds up loading of huge DEC-IX config from 128 s to 15 s. It also
makes the code significantly simpler.
filter/filter.c
filter/filter.h
filter/test.conf
filter/tree.c