Browse Source

[2090] Comment on switch to bare pointers

Michal 'vorner' Vaner 13 years ago
parent
commit
51cc7bb7a7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/lib/datasrc/rbtree.h

+ 6 - 0
src/lib/datasrc/rbtree.h

@@ -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.