Changeset: af1625adce35 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/af1625adce35 Modified Files: gdk/gdk_string.c Branch: ascii-flag Log Message:
Make case conversion on a bat more efficient. diffs (22 lines): diff --git a/gdk/gdk_string.c b/gdk/gdk_string.c --- a/gdk/gdk_string.c +++ b/gdk/gdk_string.c @@ -4602,15 +4602,16 @@ BATcaseconvert(BAT *b, BAT *s, const int bi = bat_iterator(b); char *buf = NULL; size_t buflen = 0; - TIMEOUT_LOOP(ci.ncand, qry_ctx) { + TIMEOUT_LOOP_IDX_DECL(i, ci.ncand, qry_ctx) { BUN x = canditer_next(&ci) - bhseqbase; if (convertcase(&buf, &buflen, (const uint8_t *) BUNtvar(bi, x), convtab) != GDK_SUCCEED || - BUNappend(bn, buf, false) != GDK_SUCCEED) { + tfastins_nocheckVAR(bn, i, buf) != GDK_SUCCEED) { goto bailout; } } GDKfree(buf); + BATsetcount(bn, ci.ncand); bat_iterator_end(&bi); TIMEOUT_CHECK(qry_ctx, GOTO_LABEL_TIMEOUT_HANDLER(bailout, qry_ctx)); _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org