-
Notifications
You must be signed in to change notification settings - Fork 54
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
IMAP's fetch
results with extreme memory usage and computer freezing.
#39
Comments
Hi @yuvallanger , sorry for the answer delay. Please can you give more information about the 'lastMsg' mail content? What is it actual size? Does it have any attachment? Or, the problem is for all mail message? |
@lemol, @jtdaugherty This performance issue is probably related to the fact that even the ByteString implementations use a String fetcher. Would you be willing to accept PRs that fix that? |
@mkawalec , thank you for your interest. Yes, a PR will be well come! |
@lemol: Decided to go the long way and created my own imap library, https://github.com/mkawalec/imap. |
Nice, @mkawalec ! |
I have profiled it and found that function eval/fetchByString/ consumed several gigabytes ram.
|
I have written the following function using the HaskellNet and HaskellNet-SSL libraries.
Using the "fetch" function results with memory usage blowing up and extreme swapping.
What am I doing wrong? Might it be a bug?
The text was updated successfully, but these errors were encountered: