2019-09-15 13:57:14 +0100 | received badge | ● Scholar (source) |
2019-09-15 09:32:59 +0100 | received badge | ● Good Question (source) |
2019-09-15 06:01:19 +0100 | received badge | ● Supporter (source) |
2019-09-13 16:05:43 +0100 | received badge | ● Nice Question (source) |
2019-09-13 16:03:35 +0100 | commented answer | Memory leak with matroid is_connected method Thank you for your answer! I verified and in fact there was no memory leak occurring in the first code snippet I posted. The issue appears to be related with the |
2019-09-13 11:32:59 +0100 | received badge | ● Student (source) |
2019-09-12 23:59:40 +0100 | received badge | ● Editor (source) |
2019-09-12 13:41:20 +0100 | asked a question | Memory leak with matroid is_connected method Hello. I've been using Graphic Matroids to deal with some enumeration problems, where I filter a list of graphs based on their flats. Even without really undestanding what happens at low level, I could verify that the computation is faster when I build the equivalent representation of each graphic matroid using the Incidence matrix of the graph over GF(2). One big issue that I am facing is that some memory leak is ocurring. As the size of my list of graphs grows, the ram memory got consumed until a point that my computer breaks down and restarts. My way out has been to use a bash script to keep calling the main program until I reach the end of an external text file (the input). To force the EDIT 1: The memory leak seems to be related with the With the use of and without: EDIT 2: Ok, I solved my problem by just explicitly declaring the function I'm letting the code below for the case someone faces a similar problem or has any better solution or clue about why it happened: |