changeset 380:fb59a15622d0 HEAD

speedup
author Timo Sirainen <tss@iki.fi>
date Mon, 07 Oct 2002 16:37:52 +0300
parents b319eb0fc181
children a78def4088c1
files src/lib-index/mail-tree-redblack.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-tree-redblack.c	Mon Oct 07 16:07:18 2002 +0300
+++ b/src/lib-index/mail-tree-redblack.c	Mon Oct 07 16:37:52 2002 +0300
@@ -663,14 +663,8 @@
 
 		if (node[x].key > last_uid)
 			x = RBNULL;
-
-		if (x != RBNULL) {
-			/* FIXME: this is the safest way, but slowest
-			   to get the seq right.. */
-			return mail_tree_lookup_uid_range(tree, seq_r,
-							  node[x].key,
-							  node[x].key);
-		}
+		else
+			*seq_r = seq+1;
 	}
 
 	return x == RBNULL ? 0 : node[x].value;