]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
RRDP Notification: Optimize delta parse
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 4 Sep 2021 04:58:01 +0000 (23:58 -0500)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 4 Sep 2021 05:05:17 +0000 (00:05 -0500)
commiteb68ebbaab50f3365aa51bbaa17cb862bf4607fa
tree0d2cfa630fb098e97c9198a92c34dfdb9af270ac
parent33664f3f6a06e519a5abf8846ae4ceb615eaa7a3
RRDP Notification: Optimize delta parse

It was allocating the deltas array twice, for seemingly no reason.
Also, the array slots were pointers, and the two arrays pointed to
different instances of the same objects. For seemingly no reason.

Now there's only one array, and it stores the objects directly.

Also adds relevant unit tests.
src/rrdp/rrdp_objects.c
src/rrdp/rrdp_objects.h
src/rrdp/rrdp_parser.c
src/xml/relax_ng.c
test/Makefile.am
test/rrdp_objects_test.c [new file with mode: 0644]