mirror of
				https://github.com/cldellow/sqlite-parquet-vtable.git
				synced 2025-11-02 02:29:57 +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:
		@@ -706,7 +706,7 @@ start:
 | 
			
		||||
 | 
			
		||||
  rowsLeftInRowGroup--;
 | 
			
		||||
  rowId++;
 | 
			
		||||
  if(!currentRowSatisfiesFilter())
 | 
			
		||||
  if(constraints.size() > 0 && !currentRowSatisfiesFilter())
 | 
			
		||||
    goto start;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user