Serhiy Storchaka added the comment:

There is not easy to benchmark PyDict_Next. dict.__repr__ does much hard work 
(calling repr() for keys and values, formatting strings). Using 
_testcapi.test_dict_iteration perhaps is the easiest way to measure the 
performance of pure PyDict_Next, but it includes creating and deallocating of 
dicts.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to