Closed ringsaturn closed 1 year ago
Yeah. It's a tradeoff. I defaulted to the index with faster construction and lower memory usage.
A quadtree index is about 2x faster construction, but 2x slower searches, than an rtree index.
Yeah. It's a tradeoff. I defaulted to the index with faster construction and lower memory usage.
A quadtree index is about 2x faster construction, but 2x slower searches, than an rtree index.
Thanks, I will try this option in my projects.
Hi, thanks a lot for this fantastic package!
I have a question about the
DefaultIndexOptions
which defined use QuadTree:https://github.com/tidwall/geojson/blob/ad814f6c693f7f60e025596499c5703d1480d2b7/geometry/series.go#L39-L42
I try to setup a benchmark in CI, here is a sample which shows RTree based index seems faster:
So default option use QuadTree because it used less memory than RTree and not too slower compared with RTree and use QuadTree could reduce index time when series created?