[issue11089] ConfigParser 50x slower in 2.7

Stefan Krah report at bugs.python.org
Tue Feb 1 23:07:07 CET 2011


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

If OrderedDict is used, the test case quickly uses 8GB of memory. With
this change (I'm not suggesting this as a fix!), the timings are normal:


Index: Lib/ConfigParser.py
===================================================================
--- Lib/ConfigParser.py (revision 88298)
+++ Lib/ConfigParser.py (working copy)
@@ -92,6 +92,7 @@
 except ImportError:
     # fallback for setup.py which hasn't yet built _collections
     _default_dict = dict
+_default_dict = dict
 
 import re

----------
nosy: +skrah

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11089>
_______________________________________


More information about the Python-bugs-list mailing list