From: Michal 'vorner' Vaner Date: Mon, 23 Jul 2012 08:29:17 +0000 (+0200) Subject: [2090] Comment on switch to bare pointers X-Git-Tag: trac2351_base~158^2~17^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51cc7bb7a7ed494d4fdf80de77a057e2b3833699;p=thirdparty%2Fkea.git [2090] Comment on switch to bare pointers --- diff --git a/src/lib/datasrc/rbtree.h b/src/lib/datasrc/rbtree.h index 126aa6ef81..284627b4d2 100644 --- a/src/lib/datasrc/rbtree.h +++ b/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.