[issue8685] set(range(100000)).difference(set()) is slow

Andrew Bennetts report at bugs.python.org
Mon Aug 9 13:24:42 CEST 2010


Andrew Bennetts <spiv at users.sourceforge.net> added the comment:

On 2010-05-17 rhettinger wrote:
> Will look at this when I get back to the U.S.

Ping!  This patch (set-difference-speedup-2.diff) has been sitting around for a fair few weeks now.  It's a small patch, so it should be relatively easy to review.  It makes a significant improvement to speed and memory in one case (which we have encountered and worked around in bzr), and has no significant downside to any other cases.

Thanks :)

----------

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


More information about the Python-bugs-list mailing list