[issue11089] ConfigParser 50x slower in 2.7

2011-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: See r88469 and r88470. -- resolution: later -> fixed status: open -> closed ___ Python tracker ___ _

[issue11089] ConfigParser 50x slower in 2.7

2011-02-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed 3.1 in r88323. -- assignee: georg.brandl -> rhettinger resolution: -> later versions: -Python 3.1 ___ Python tracker ___ ___

[issue11089] ConfigParser 50x slower in 2.7

2011-02-02 Thread Georg Brandl
Georg Brandl added the comment: 3.2.1 should be fine. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11089] ConfigParser 50x slower in 2.7

2011-02-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching patch for Python 3.2. Georg, I was think of waiting for 3.2.1 for this one, but it can go into 3.2.0 RC2 if you prefer. -- assignee: rhettinger -> georg.brandl nosy: +georg.brandl Added file: http://bugs.python.org/file20654/configparser.

[issue11089] ConfigParser 50x slower in 2.7

2011-02-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed for 2.7 in r88318. Will make a similar fix for 3.1.4 and for 3.2.1. -- assignee: lukasz.langa -> rhettinger versions: -Python 2.7 ___ Python tracker ___

[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching a patch that fixes the algorithmic atrocities by using the Chainmap recipe: http://code.activestate.com/recipes/305268-chained-map-lookups -- keywords: +patch Added file: http://bugs.python.org/file20643/configparser.patch

[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Commenting-out the ``c.set(section,"item#%d"%(i),str(i))`` calls shows that that is not where the problem lies for the ConfigParser() class. The issue seems confined to ConfigParser.get(). The RawConfigParser() class doesn't seem to have the same issue. L

[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Stefan Krah
Stefan Krah 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

[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: +skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> lukasz.langa nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Vasilis
New submission from Vasilis : The ConfigParser class in 2.7 is almost >50 times slower than in the 2.6 which for large files it renders it almost unusable. Actually the speed decrease depends on the amount of the stored data Results from test program: Python 2.7 (r27:82500, Sep 16 2010, 18:02: