-
Notifications
You must be signed in to change notification settings - Fork 7
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
Memory leaks with copy.deepcopy #514
Labels
bugs
A deviation from expected behavior that does not reach the level of being reportable as an "Error".
Comments
MicahGale
added
the
bugs
A deviation from expected behavior that does not reach the level of being reportable as an "Error".
label
Aug 27, 2024
I think we need |
Also to implement #469 |
Temporary workaround:
problem =...
base_cell = problem.cells[1]
base_cell._problem = None
new_cell = copy.deepcopy(base_cell)
base_cell.link_to_problem(problem)
... # make more copies if needed, etc
new_cell.link_to_problem(problem) This still isn't super memory efficient, but it works well enough. |
I have a hunch that this is causing #463. |
Weakref does in fact resolve this, but breaks pickle. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bugs
A deviation from expected behavior that does not reach the level of being reportable as an "Error".
So I was making a lot of copies of a cell with
copy.deepcopy
and it went very badlyThis script kept crashing. It got really slow around
i==11
and was using over 3GB of RAM!This is very telling for when I ran ctrl-C:
We have a copy recursion problem.
The text was updated successfully, but these errors were encountered: