Skip to content
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

PyO3 memory leak #2

Closed
BenSchZA opened this issue Oct 12, 2020 · 1 comment
Closed

PyO3 memory leak #2

BenSchZA opened this issue Oct 12, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@BenSchZA
Copy link
Collaborator

BenSchZA commented Oct 12, 2020

See comment on Gitter:

Hi everyone! I found a few threads re. PyO3 memory use, the GIL, releasing the GIL to free memory, etc. (PyO3/pyo3#311, https://github.com/Renmusxd/pyo3_memory, PyO3/pyo3#319). In my package https://github.com/BenSchZA/radCAD I'm creating large lists of dictionaries, calling Python functions, and passing the list to those functions. In Python, that process uses maybe 500mb of memory, in PyO3, it quickly ramps up to 5GB+. The library is less than 300 loc, so maybe someone would be able to suggest a solution - because I'm relying on creating and using large PyLists maybe there isn't a way to free the memory easily?

image

@BenSchZA BenSchZA added the help wanted Extra attention is needed label Oct 12, 2020
@BenSchZA
Copy link
Collaborator Author

Resolved as of v0.1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant