summaryrefslogtreecommitdiff
path: root/lib/imsg-buffer.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-12-14 17:39:28 -0200
committerRenato Westphal <renato@opensourcerouting.org>2017-02-15 07:23:36 -0200
commit0ba645b91ddbe63cc607069b2a59e50f674f118e (patch)
treed4556a854713c24305a08af9c1bc85ec6fdd8fa0 /lib/imsg-buffer.c
parenta3cb56d84a5a0e71f9e0f96e476b857ff4f2942e (diff)
ldpd: use red-black trees to store 'adj' elements
Using red-black trees instead of linked lists brings the following benefits: 1 - Elements are naturally ordered (no need to reorder anything before outputting data to the user); 2 - Faster lookups/deletes: O(log n) time complexity against O(n). The insert operation with red-black trees is more expensive though, but that's not a big issue since lookups are much more frequent. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/imsg-buffer.c')
0 files changed, 0 insertions, 0 deletions