[issue18594] C accelerator for collections.Counter is slow
Serhiy Storchaka
report at bugs.python.org
Tue Jul 30 14:48:43 CEST 2013
Serhiy Storchaka added the comment:
Are there any cases where the counter class with the C accelerator is faster than the pure Python version? Here is a benchmarking script (modification of Roy Smith's script [1]) and looks as the pure Python version is faster even for data that has not many unique entries.
[1] http://permalink.gmane.org/gmane.comp.python.general/738820
----------
Added file: http://bugs.python.org/file31085/counterbench.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18594>
_______________________________________
More information about the Python-bugs-list
mailing list