[issue16098] Bisect optimization in heapq.nsmallest is never used

Raymond Hettinger report at bugs.python.org
Tue Oct 2 06:44:43 CEST 2012


Raymond Hettinger added the comment:

Since heapq uses the C version of nsmallest, this micro-optimization doesn't actually help any real code.  Am marking this as low priority and will come back to it at some point and will review the pure python version.  Ideally, it should parallel the C version which doesn't use bisect at all.

----------
priority: normal -> low

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


More information about the Python-bugs-list mailing list