Skip to content

Commit b4a678a

Browse files
committed
Merge pull request #3045 from kmike/less-gc-collect
Use less aggressive garbage collection
2 parents f73f04c + 8563c32 commit b4a678a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/_pylab_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def destroy(num):
6969
del Gcf.figs[num]
7070
#print len(Gcf.figs.keys()), len(Gcf._activeQue)
7171
manager.destroy()
72-
gc.collect()
72+
gc.collect(1)
7373

7474
@staticmethod
7575
def destroy_fig(fig):
@@ -90,7 +90,7 @@ def destroy_all():
9090

9191
Gcf._activeQue = []
9292
Gcf.figs.clear()
93-
gc.collect()
93+
gc.collect(1)
9494

9595
@staticmethod
9696
def has_fignum(num):

0 commit comments

Comments
 (0)