BIND 10 trac404, updated. 34571fc51116f3e476e84c20e7fb7ba59393dab8 [trac404] TODO note for future optimisation

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Apr 6 08:49:21 UTC 2011


The branch, trac404 has been updated
       via  34571fc51116f3e476e84c20e7fb7ba59393dab8 (commit)
      from  a125177e363f66375aca5af53649b8e369af58e6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 34571fc51116f3e476e84c20e7fb7ba59393dab8
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Wed Apr 6 10:48:51 2011 +0200

    [trac404] TODO note for future optimisation

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/rdatafields.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/rdatafields.h b/src/lib/dns/rdatafields.h
index 7be905a..4108703 100644
--- a/src/lib/dns/rdatafields.h
+++ b/src/lib/dns/rdatafields.h
@@ -203,6 +203,12 @@ public:
     /// and does something special for selected fields like the above example.
     /// In that case the application can easily and efficiently identify the
     /// necessary offset, again, as shown in the above code example.
+    ///
+    /// \todo We might find that 16bits per field is generally too much and
+    ///     squeeze the two bit type into it as well, having 14bit length
+    ///     (in the rare case of having too long field, it could be split into
+    ///     multiple ones). That would save 2 bytes per item (one for the type,
+    ///     one for padding).
     struct FieldSpec {
         FieldSpec(Type type_param, uint16_t len_param) :
             type(type_param), len(len_param)




More information about the bind10-changes mailing list