提交 fd8b73f4 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Allocate smaller BitSet in complexIterator()

上级 0d8696e1
...@@ -471,8 +471,7 @@ public final class WindowFrame { ...@@ -471,8 +471,7 @@ public final class WindowFrame {
private Iterator<Value[]> complexIterator(ArrayList<Value[]> orderedRows, SortOrder sortOrder, int currentRow, private Iterator<Value[]> complexIterator(ArrayList<Value[]> orderedRows, SortOrder sortOrder, int currentRow,
int startIndex, int endIndex, boolean reverse) { int startIndex, int endIndex, boolean reverse) {
int size = orderedRows.size(); BitSet set = new BitSet(endIndex + 1);
BitSet set = new BitSet(size);
set.set(startIndex, endIndex + 1); set.set(startIndex, endIndex + 1);
switch (exclusion) { switch (exclusion) {
case EXCLUDE_CURRENT_ROW: case EXCLUDE_CURRENT_ROW:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论