mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-04-03 09:39:47 +00:00
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:
parent
84a22e6e77
commit
b774973852
@ -706,7 +706,7 @@ start:
|
||||
|
||||
rowsLeftInRowGroup--;
|
||||
rowId++;
|
||||
if(!currentRowSatisfiesFilter())
|
||||
if(constraints.size() > 0 && !currentRowSatisfiesFilter())
|
||||
goto start;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user