chocoteam / choco-solver

An open-source Java library for Constraint Programming
http://choco-solver.org/
BSD 4-Clause "Original" or "Old" License
690 stars 143 forks source link

Reduce object creation during propagation #969

Closed cprudhom closed 2 years ago

cprudhom commented 2 years ago

In order to reduce the duration of the "mzn" test suite , because it is very unstable, I investigate objects creation during propagation and found out 2 memory leaks. Once corrected, the testThemAll tests went from 5m30 to 4m30 on my machine (decrease of about 18%).

@fhermeni I also fixed a leak that you noticed.