paleolimbot / geos

Open Source Geometry Engine ('GEOS') R API
https://paleolimbot.github.io/geos/
Other
61 stars 8 forks source link

Use less aggressive strategy for growable index list in geos_strtree functions #42

Closed paleolimbot closed 3 years ago

paleolimbot commented 3 years ago

(Right now they allocate a lot for repeated calls to a big index)

paleolimbot commented 3 years ago

New method is equally aggressive (swap space is the double(length_of_input)) but only allocs once per strtree (rather than once per query!)