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)
 
 /*