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

Andrew Bennetts report at bugs.python.org
Tue Aug 10 01:40:13 CEST 2010

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

Alexander: yes, they are complementary.  My patch improves set.difference, which always creates a new set.  issue8425 on the other hand improves in-place difference (via the -= operator or set.difference_update).  Looking at the two patches, my patch will not improve in-place difference, and issue8425's patch will not improve set.difference.  So they are complementary.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list