Samuel Thibault 10 年 前
コミット
871bf96056
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4 0
      src/common/rbtree.h

+ 4 - 0
src/common/rbtree.h

@@ -272,11 +272,15 @@ void starpu_rbtree_remove(struct starpu_rbtree *tree, struct starpu_rbtree_node
 /*
  * Return the first node of a tree.
  */
+/* TODO: optimize by maintaining the first node of the tree */
 #define starpu_rbtree_first(tree) starpu_rbtree_firstlast(tree, STARPU_RBTREE_LEFT)
 
 /*
  * Return the last node of a tree.
  */
+/* TODO: optimize by maintaining the first node of the tree */
+/* TODO: could be useful to optimize the case when the key being inserted is
+ * bigger that the biggest node */
 #define starpu_rbtree_last(tree) starpu_rbtree_firstlast(tree, STARPU_RBTREE_RIGHT)
 
 /*