This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients Tim Mitchell, abarry, christian.heimes, duaneg, larry, methane, ned.deily, rhettinger, serhiy.storchaka, tehybel
Date 2016-11-17.12:34:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479386096.46.0.442865444957.issue27945@psf.upfronthosting.co.za>
In-reply-to
Content
I'm sorry, dict.fromkeys() didn't use PyDict_MergeFromSeq2().

This may be microbench for worst case:

$ ~/local/py35/bin/master -m perf timeit --rigorous  --python ~/local/py35/bin/patched --compare-to ~/local/py35/bin/master -s 'L = [(i,i) for i in range(10000)]' -- 'dict(L)'
master: ......................................... 2.06 ms +- 0.11 ms
patched: ......................................... 2.16 ms +- 0.09 ms

Median +- std dev: [master] 2.06 ms +- 0.11 ms -> [patched] 2.16 ms +- 0.09 ms: 1.05x slower

$ ~/local/py27/bin/master -m perf timeit --rigorous  --python ~/local/py27/bin/patched --compare-to ~/local/py27/bin/master -s 'L = [(i,i) for i in range(10000)]' -- 'dict(L)'
master: ......................................... 1.48 ms +- 0.06 ms
patched: ......................................... 1.57 ms +- 0.09 ms

Median +- std dev: [master] 1.48 ms +- 0.06 ms -> [patched] 1.57 ms +- 0.09 ms: 1.06x slower
History
Date User Action Args
2016-11-17 12:34:56methanesetrecipients: + methane, rhettinger, larry, christian.heimes, ned.deily, duaneg, serhiy.storchaka, abarry, tehybel, Tim Mitchell
2016-11-17 12:34:56methanesetmessageid: <1479386096.46.0.442865444957.issue27945@psf.upfronthosting.co.za>
2016-11-17 12:34:56methanelinkissue27945 messages
2016-11-17 12:34:56methanecreate