Avoid row filter check when no constraints

The function call overhead is expensive!

This makes count(*) on the census data 175ms instead
of 225ms, while not significantly impacting other use cases.
This commit is contained in:
Colin Dellow 2018-06-24 14:51:54 -04:00
parent 84a22e6e77
commit b774973852
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ start:
rowsLeftInRowGroup--;
rowId++;
if(!currentRowSatisfiesFilter())
if(constraints.size() > 0 && !currentRowSatisfiesFilter())
goto start;
}