[issue23744] Speed-up deque.__bool__

Josh Rosenberg report at bugs.python.org
Tue Mar 24 02:46:48 CET 2015


Josh Rosenberg added the comment:

Is it worth the definition of tp_as_number and maintaining another method for a micro-optimization? Presumably every collection in Python would benefit slightly from this (say, defaultdict in the same file, list, tuple, etc.), but none of them bother. Why would deque be worth the optimization and not the more commonly used built-ins?

----------
nosy: +josh.r

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


More information about the Python-bugs-list mailing list