Changeset: 1ac4576ae67f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1ac4576ae67f
Modified Files:
sql/server/rel_select.c
Branch: window-tunning
Log Message:
Do less copying
diffs (27 lines):
diff --git a/sql/server/rel_select.c b/sql/server/rel_select.c
--- a/sql/server/rel_select.c
+++ b/sql/server/rel_select.c
@@ -4803,9 +4803,9 @@ rel_rankop(sql_query *query, sql_rel **r
if (frame_clause || supports_frames) {
if (frame_type == FRAME_RANGE)
- ie = exp_copy(sql, obe ? (sql_exp*) obe->t->data : in);
+ ie = obe ? (sql_exp*) obe->t->data : in;
else
- ie = exp_copy(sql, oe);
+ ie = oe;
}
/* Frame */
@@ -4916,9 +4916,9 @@ rel_rankop(sql_query *query, sql_rel **r
list_append(args, start);
list_append(args, eend);
} else if (frame_type == FRAME_UNBOUNDED_TILL_CURRENT_ROW ||
frame_type == FRAME_CURRENT_ROW_TILL_UNBOUNDED)
- list_append(args, exp_copy(sql, oe));
+ list_append(args, oe);
if (gbe && !is_value)
- list_append(args, exp_copy(sql, pe));
+ list_append(args, start && eend ? exp_ref(sql, pe) :
pe);
}
call = exp_rank_op(sql->sa, list_empty(args) ? NULL : args, gbe, obe,
wf);
if (call && !exp_name(call))
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list