Changeset: 9103d8b6609f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9103d8b6609f
Modified Files:
        monetdb5/extras/rapi/converters.c
        tools/embedded/embedded.c
Branch: embedded
Log Message:

bat_to_sexp minor optimization


diffs (26 lines):

diff --git a/monetdb5/extras/rapi/converters.c 
b/monetdb5/extras/rapi/converters.c
--- a/monetdb5/extras/rapi/converters.c
+++ b/monetdb5/extras/rapi/converters.c
@@ -105,9 +105,9 @@ static SEXP bat_to_sexp(BAT* b) {
                        BATloop(b, p, q) {
                                const char *t = (const char *) BUNtail(li, p);
                                if (ATOMcmp(TYPE_str, t, str_nil) == 0) {
-                                       SET_STRING_ELT(varvalue, j, NA_STRING);
+                                       STRING_ELT(varvalue, j) = NA_STRING;
                                } else {
-                                       SET_STRING_ELT(varvalue, j, mkCharCE(t, 
CE_UTF8));
+                                       STRING_ELT(varvalue, j) = mkCharCE(t, 
CE_UTF8);
                                }
                                j++;
                        }
diff --git a/tools/embedded/embedded.c b/tools/embedded/embedded.c
--- a/tools/embedded/embedded.c
+++ b/tools/embedded/embedded.c
@@ -78,6 +78,7 @@ int monetdb_startup(char* dir, char sile
        GDKsetenv("monet_mod_path", mod_path);
        GDKsetenv("mapi_disable", "true");
        GDKsetenv("max_clients", "0");
+       GDKsetenv("sql_optimizer", "sequential_pipe"); // TODO: SELECT * FROM 
table should not use mitosis in the first place.
 
        if (silent) THRdata[0] = stream_blackhole_create();
        msab_dbpathinit(GDKgetenv("gdk_dbpath"));
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to