[issue6370] Bad performance of colllections.Counter at initialisation from an iterable

Raymond Hettinger report at bugs.python.org
Mon Jun 29 21:11:30 CEST 2009


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

I run many timings and the dict.get() approach is decidedly faster. 
Thanks for pointing that out.  Applied in r73695, r73696, and 73697.

FWIW, a timing suite is attached.

----------
resolution:  -> fixed
status: open -> closed
versions: +Python 2.7, Python 3.2
Added file: http://bugs.python.org/file14391/tmp_time_missing.py

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


More information about the Python-bugs-list mailing list