-
Notifications
You must be signed in to change notification settings - Fork 93
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
Parser makes Ubuntu crash on 1.2G file #130
Comments
What precisely do you mean by crash? Keep in mind that heap representations (especially your particular |
Thanks for the quick answer. By "crash", I mean the computer freezes and becomes unresponsive. I've monitored memory usage and you are right, I'm running out of memory. Is there a way to decrease memory usage of my program ? |
Looking at your program, a few things stand out:
|
@alexDarcy, see https://github.com/bgamari/memory-reduction for a few examples. Come find me in |
Hi,
I've implemented a parser using Attoparsec, which works very well. Unfortunately, for a large file (one of 1.2Go), running the parser makes it crash on my Ubuntu 16.04.2 LTS. I'm using attoparsec 0.13.1.0 with stack.
Below is the complete code for the parser. As a example, a small file is also given to have an idea of the file format. small_test.txt
If someone is interested, I can give the large file making the parser crash. Thanks.
The text was updated successfully, but these errors were encountered: