-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parquet/Arrow: implement faster spatial filtering with ArrowArray int…
…erface We no longer fallback to the slow & generic implementation that goes through GetNextFeature(), but directly post filter the ArrowArray to remove features not intersecting the spatial filter. The performance gain is mostly when a big number of features is selected (the fallback GetNextFeature() has already an efficient spatial filtering, so when selecting a small number of features, this optimization doesn't bring anything) Can be up to 10x faster in that situation. Now: ``` $ time bench_ogr_batch nz-building-outlines.parquet -spat 1167513 4794680 2089113 6190596 real 0m1,275s user 0m1,565s sys 0m0,322s ``` Before: ``` $ time bench_ogr_batch nz-building-outlines.parquet -spat 1167513 4794680 2089113 6190596 real 0m13,507s user 0m13,728s sys 0m0,712s ```
- Loading branch information
Showing
6 changed files
with
778 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.