-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use unboxed array for the main matrix #11
Comments
See https://stackoverflow.com/questions/32123475/profiling-builds-with-stack for instructions how to profile with stack and https://making.pusher.com/memory-profiling-in-haskell/ for an example. |
Asked a question on SO https://stackoverflow.com/questions/53692617/memory-usage-of-a-recursive-array-in-haskell |
The cause of the high memory footprint is "boxing": as I understand it, Haskell keeps the full computation of the array entries instead of the final value. Use unboxed arrays instead. Things to keep in mind:
|
Example use of the key |
No description provided.
The text was updated successfully, but these errors were encountered: