[issue2672] speed of set.update([])

Raymond Hettinger report at bugs.python.org
Wed Apr 23 22:38:28 CEST 2008

Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

I concur.  The source code for set_update() in Objects/setobject.c 
shows that both versions are accessed through the iterator protocol, so 
what you're seeing are the basic performance differences (start-up and 
per-item costs) for genexps vs list iterators.

resolution:  -> invalid
status: open -> closed

Tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list