Brett Cannon added the comment:

Would be interesting to know what speed difference would occur if the 
statistics gathering was optional and turned off.

As for _make_key(), I wonder if ``(args, tuple(sorted(kwd.items())))`` as a key 
would be any faster as a tuple's hash is derived from its contents and not the 
tuple itself (if I remember correctly). You could even special case when 
len(kwds) == 0 to skip the sorted(kwd.items()) overhead if it is worth it 
performance-wise.

----------

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

Reply via email to