Author inada.naoki
Recipients Mark.Shannon, inada.naoki, josh.r, louielu, r.david.murray, rhettinger, serhiy.storchaka, terry.reedy, tim.peters, vstinner, xiang.zhang
Date 2019-03-14.08:04:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552550669.15.0.283010949251.issue30040@roundup.psfhosted.org>
In-reply-to
Content
Benchmark result is here.

https://github.com/methane/sandbox/tree/master/2019.01/empty-dict

notes:

* Overhead introduced by PR 1080 (https://bugs.python.org/issue30040#msg337778) is cancelled by first insert optimization.  It is now faster than before.

* PR 12307 (first insert optimization) is about 2x faster on creating & destroy empty dict.  Other performance diff is small.

* PR 12308 (use keys=NULL instead of shared empty keys) is more faster than PR 12307 on some cases, while it requires much `if (md->ma_keys == NULL)` checks.
History
Date User Action Args
2019-03-14 08:04:29inada.naokisetrecipients: + inada.naoki, tim.peters, rhettinger, terry.reedy, vstinner, r.david.murray, Mark.Shannon, serhiy.storchaka, josh.r, xiang.zhang, louielu
2019-03-14 08:04:29inada.naokisetmessageid: <1552550669.15.0.283010949251.issue30040@roundup.psfhosted.org>
2019-03-14 08:04:29inada.naokilinkissue30040 messages
2019-03-14 08:04:29inada.naokicreate