Changeset: ee8385e4c3c6 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ee8385e4c3c6 Modified Files: monetdb5/optimizer/opt_projectionpath.c Branch: Jul2017 Log Message:
Don't grow mal statement block unnecessarily. diffs (12 lines): diff --git a/monetdb5/optimizer/opt_projectionpath.c b/monetdb5/optimizer/opt_projectionpath.c --- a/monetdb5/optimizer/opt_projectionpath.c +++ b/monetdb5/optimizer/opt_projectionpath.c @@ -181,7 +181,7 @@ OPTprojectionpathImplementation(Client c old= mb->stmt; limit= mb->stop; slimit= mb->ssize; - if ( newMalBlkStmt(mb,mb->ssize + mb->stop) < 0) + if ( newMalBlkStmt(mb, 2 * mb->stop) < 0) throw(MAL,"optimizer.projectionpath", MAL_MALLOC_FAIL); /* beware, new variables and instructions are introduced */ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list