Changeset: 43838d91a34d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/43838d91a34d
Modified Files:
gdk/gdk_batop.c
Branch: Mar2025
Log Message:
Skip strcmp if we already know the result.
diffs (12 lines):
diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -1315,7 +1315,7 @@ BATappend_or_update(BAT *b, BAT *p, cons
continue;
}
- bool isnil = atomcmp(new, nil) == 0;
+ bool isnil = !ni.nonil && atomcmp(new, nil) == 0;
anynil |= isnil;
MT_lock_set(&b->theaplock);
if (old == NULL ||
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]