Author rhettinger
Recipients rhettinger, terry.reedy
Date 2016-09-11.19:53:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473623594.83.0.242429297633.issue28071@psf.upfronthosting.co.za>
In-reply-to
Content
New timings look nice:

     $ py -m timeit -s "r = range(10 ** 4); s = set()" "s.difference(r)"
    10000000 loops, best of 3: 0.104 usec per loop
     $ py -m timeit -s "r = set(range(10 ** 4)); s = set()" "s.difference(r)"
    10000000 loops, best of 3: 0.105 usec per loop
     $ py -m timeit -s "r = range(10 ** 4); s = set()" "s.difference_update(r)"
    10000000 loops, best of 3: 0.0659 usec per loop
     $ py -m timeit -s "r = set(range(10 ** 4)); s = set()" "s.difference_update(r)"
    10000000 loops, best of 3: 0.0684 usec per loop
History
Date User Action Args
2016-09-11 19:53:14rhettingersetrecipients: + rhettinger, terry.reedy
2016-09-11 19:53:14rhettingersetmessageid: <1473623594.83.0.242429297633.issue28071@psf.upfronthosting.co.za>
2016-09-11 19:53:14rhettingerlinkissue28071 messages
2016-09-11 19:53:14rhettingercreate