]> git.ipfire.org Git - people/ms/libloc.git/commit - src/database.c
database: Avoid merging the same data twice
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Nov 2020 15:15:59 +0000 (15:15 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Nov 2020 15:15:59 +0000 (15:15 +0000)
commit5dacb45afceac2d05ea597755c1ca5a1b62cc0fd
treebed37b1feb9cb904366376fa46b90852622639b7
parent39cbbc63aee362d82f69a9b4722b59153ce799a0
database: Avoid merging the same data twice

When finish splitting networks into many parts, we have
a list of subnets with the excluded subnets and merge them
together first and put them on the stack again.

This is slower than pushing it all onto the stack first
and then popping the first element.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.c