-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to clear memory after writing to a file within a loop #41
Comments
isn't the occupied memory relative stable? looks like nim is a bit lazy to return the memory page to the OS. this is beyond app control. |
When writing large files the memory expands quite a lot. I have some PDF files which ranges between 150-500mb, and then the memory usage goes from 500mb to +16GB. |
Here is real example with 4 files increasing up to 5.6GB.
|
well, perhaps you can report this issue to nim repo. I don't know how can I help you. I also expect nim to automatically do garbage collection. why would it become our concern. I really cannot help you. |
Check, I'll move it to the nim-repo. I just wasn't sure if there was a way to manually free |
When writing multiple PDF files within a loop the memory consumption just steadily increases. Is there a way to clear or free memory after each write?
Example
Output
The text was updated successfully, but these errors were encountered: