commit | d57b4d3b31f80e2e72eebab7aea37378c4729d19 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Feb 02 08:37:11 2011 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Wed Feb 02 08:37:11 2011 +0000 |
tree | 271e93e548e5fee7e5c5b87d2bbd9be5d6e9dc44 | |
parent | 820021ebd8ff50b3fe70e1354b4d50c1e0f68611 [diff] |
Issue 11089: Fix performance bug in ConfigParser that impaired its usability for large config files. The ConfigParser.get() method should have been O(1) but had O(n) dict copies and updates on every call. This was exacerbated by using OrderedDicts which do not copy or update nearly as fast as regular dicts which are coded in C.