Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stackoverflows #14

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Fix stackoverflows #14

merged 1 commit into from
Aug 10, 2023

Conversation

patricoferris
Copy link
Contributor

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

@patricoferris patricoferris merged commit ba7ee18 into main Aug 10, 2023
1 check passed
@patricoferris patricoferris deleted the stackoverflow branch August 10, 2023 18:35
patricoferris added a commit to patricoferris/opam-repository that referenced this pull request Aug 17, 2023
CHANGES:

## Bugs, Fixes and Optimisations

 - Remove extra length calculations (geocaml/ocaml-rtree#16, @lindig)
 - Remove some polymorphic comparisons and replace with `Float` functions (geocaml/ocaml-rtree#15, @patricoferris)
 - Fix stack overflows in OMT and Rectangle.merge (geocaml/ocaml-rtree#14, @patricoferris, reported by @lindig)
nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
CHANGES:

## Bugs, Fixes and Optimisations

 - Remove extra length calculations (geocaml/ocaml-rtree#16, @lindig)
 - Remove some polymorphic comparisons and replace with `Float` functions (geocaml/ocaml-rtree#15, @patricoferris)
 - Fix stack overflows in OMT and Rectangle.merge (geocaml/ocaml-rtree#14, @patricoferris, reported by @lindig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant