summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-12-13 16:19:15 -0200
committerRenato Westphal <renato@opensourcerouting.org>2017-02-15 07:19:52 -0200
commit29f6e7acbe3309bf91e4666db6952512baed3ee0 (patch)
tree4c1318299354274e046348477a5e82257eec0bea /lib/json.c
parent39ec2dc9bb7d19262c264398cd1c9178fabb1862 (diff)
ldpd: use red-black trees to store 'tnbr' 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/json.c')
0 files changed, 0 insertions, 0 deletions