Changeset: 2b6fa9dc2e20 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2b6fa9dc2e20
Modified Files:
gdk/gdk_bbp.c
Branch: Dec2025
Log Message:
Move call out of inner loop.
diffs (16 lines):
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -1511,11 +1511,11 @@ jsonupgradebat(BAT *b, json_storage_conv
b->tvheap = vh2;
vh2 = NULL;
+ allocator *ta = MT_thread_getallocator();
for (BUN i = 0; i < b->batCount; i++) {
var_t o = ((var_t *) h1.base)[i];
const char *s = vh1.base + o;
char *ns;
- allocator *ta = MT_thread_getallocator();
allocator_state ta_state = ma_open(ta);
if (fixJSONStorage(&ns, &s) != GDK_SUCCEED) {
HEAPfree(&h1, false);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]