Skip to content

Conversation

@alexandersgreen
Copy link
Contributor

When using the Kernel Density Estimation algorithm, we detected a space leak that causes a stack overflow for large inputs. After some profiling, this was discovered to be due to a lack of strictness in the histogram_ function when it updates an element in a vector.
This change simply uses a bang pattern to introduce strictness in that function as necessary to remove the space leak, and enable us to run the Kernel Density Estimation functions in constant space.

@bos bos merged commit 730f4a0 into haskell:master Feb 9, 2017
@bos
Copy link
Collaborator

bos commented Feb 9, 2017

Thanks!

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.

2 participants