]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
TODO listing, comment fix
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 27 Apr 2007 09:37:38 +0000 (09:37 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 27 Apr 2007 09:37:38 +0000 (09:37 +0000)
git-svn-id: file:///svn/unbound/trunk@264 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/TODO
util/data/msgreply.c

index 143766f1e854c83e216009384d96a6cb09193eb0..002a11dbe2d3173556b263fbe85669a1c84a5e5b 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -11,4 +11,5 @@ o possible optimization, so that precious id number resource is not depleted
   by parsing of messages. Delay malloc, as above, or try to reverse release
   special id numbers, and if you release the next_id number for the thread
   it reuses that id number.
-o calculate rdata size during parse step, instead of delay until copy.
+o use rbtree to compress domain names in messages, sorted AXFRs of 16Kb
+  and so on. This may be faster for that case.
index eb9cb46a61ab219e76f410d9ca887839695ec53f..34ac938f9adc4370eddbcaef832a8d8ebfb28d51 100644 (file)
@@ -612,7 +612,7 @@ compress_tree_insert(struct compress_tree_node** tree, uint8_t* dname,
        while(p) {
                c = dname_lab_cmp(dname, labs, p->dname, p->labs, &m);
                log_assert(c != 0); /* may not already be in tree */
-               if(c==0) return p;
+               if(c==0) return p; /* insert only once */
                if(c<0) {
                        prev = &p->left;
                        p = p->left;