Skip to content

BUG: Fix memory leak in shgo triangulation #10990

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

Merged
merged 1 commit into from
Nov 10, 2019

Conversation

kmichel2
Copy link

Closes #10987

This removes the unnecessary lru_cache responsible for the
memory leak.

Simply removing the cache and keeping the cached functions
was slightly slower during tests.

Inlining generate_sub_cell_t1 and generate_sub_cell_t2
at their single point of use gave back the lost performance.

Simply removing the cache and keeping the cached functions
was slightly slower during tests.

Inlining generate_sub_cell_t1 and generate_sub_cell_t2
at their single point of use gave back the lost performance.
@rgommers rgommers added maintenance Items related to regular maintenance tasks scipy.optimize labels Nov 10, 2019
@rgommers rgommers merged commit 4ce35da into scipy:master Nov 10, 2019
@rgommers rgommers added this to the 1.4.0 milestone Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.optimize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak in shgo triangulation
2 participants