Skip to content
Snippets Groups Projects
Commit 670234c8 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

rrset TODO: knot_rrset_rdata_equal() is ineffective

parent c7b16a40
No related branches found
No related tags found
No related merge requests found
......@@ -1071,6 +1071,13 @@ int knot_rrset_rdata_equal(const knot_rrset_t *r1, const knot_rrset_t *r2)
// compare RDATA sets (order is not significant)
/*!
* \todo This is heavily ineffective. What about comparing
* rdata_count and then doing just one comparison loop, instead of
* checking from left and then from the right? That would simplify
* things a little bit.
*/
// find all RDATA from r1 in r2
int found = 0;
for (uint16_t i = 0; i < r1->rdata_count; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment