geocaml / ocaml-rtree

A pure OCaml implementation of R-Trees
BSD 3-Clause "New" or "Revised" License
26 stars 7 forks source link

Fix stackoverflows #14

Closed patricoferris closed 1 year ago

patricoferris commented 1 year ago

Spotted by @lindig (thanks!) -- Both the use of List.map and the rectangle merge_many functions weren't tail-recursive leading to stack overflows.