Changeset: 83862488333c for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=83862488333c Modified Files: sql/backends/monet5/sql_gencode.c Branch: jit Log Message:
Optimize the functions before caching diffs (20 lines): diff --git a/sql/backends/monet5/sql_gencode.c b/sql/backends/monet5/sql_gencode.c --- a/sql/backends/monet5/sql_gencode.c +++ b/sql/backends/monet5/sql_gencode.c @@ -3029,6 +3029,7 @@ backend_create_r_func(backend *be, sql_f return 0; } +/* Create the MAL block for a registered function and optimize it */ static int backend_create_sql_func(backend *be, sql_func *f, list *restypes, list *ops) { @@ -3143,6 +3144,8 @@ backend_create_sql_func(backend *be, sql curBlk->unsafeProp = 1; f->sa = sa; m->sa = osa; + /* optimize the code */ + optimizeQuery(c, c->curprg->def); addQueryToCache(c); if (backup) c->curprg = backup; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list