Skip to content

Commit 0f52e2d

Browse files
committed
Add garbage collector.
Have added the garbage collector to the generator.
1 parent 285bf2c commit 0f52e2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

axelrod/result_set.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections import defaultdict
22
import csv
33
import tqdm
4+
import gc
45

56
from numpy import mean, nanmedian, std
67

@@ -899,6 +900,7 @@ def read_match_chunks(self, progress_bar=False):
899900
yield repetitions
900901
repetitions = []
901902
count = 0
903+
gc.collect()
902904

903905
if progress_bar:
904906
progress_bar.close()

0 commit comments

Comments
 (0)