]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2090] Comment on switch to bare pointers
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 23 Jul 2012 08:29:17 +0000 (10:29 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 23 Jul 2012 08:29:17 +0000 (10:29 +0200)
src/lib/datasrc/rbtree.h

index 126aa6ef81b49a0fd96fac25dfa32b6374d479e8..284627b4d264df0bf9ba8d034427c3c733892b53 100644 (file)
@@ -304,6 +304,12 @@ private:
         const;
 
     /// \name Data to maintain the rbtree structure.
+    ///
+    /// We keep them as offset pointers. This is part of a future plan, when we
+    /// want to share the image of the tree between multiple processes.
+    /// However, whenever we have a chance, we switch to bare pointers during
+    /// the processing. The pointers on stack are never shared and the offset
+    /// pointers have non-trivial performance impact.
     //@{
     RBNodePtr parent_;
     /// \brief Access the parent_ as bare pointer.