# HG changeset patch # User Maciej Fijalkowski # Date 1469708281 -7200 # Node ID 279cd80059d41bbdb91ea9073278cbbe7f1b43d5 # Parent 978b907d9b3646839b7e68d9d0d193dbc6c8fb66 performance: disable workaround for an old bug of Python gc Since disabling the gc does things worse for pypy and the bug was fixed in 2.7, let's only enable it in <2.7 diff -r 978b907d9b36 -r 279cd80059d4 mercurial/util.py --- a/mercurial/util.py Fri Aug 12 05:56:40 2016 -0700 +++ b/mercurial/util.py Thu Jul 28 14:18:01 2016 +0200 @@ -881,6 +881,8 @@ This garbage collector issue have been fixed in 2.7. """ + if sys.version >= (2, 7): + return func def wrapper(*args, **kwargs): gcenabled = gc.isenabled() gc.disable()