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 Mark.Shannon, benjamin.peterson, methane, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-10-26.01:47:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477446433.02.0.533180037015.issue28509@psf.upfronthosting.co.za>
In-reply-to
Content
I feel that accept one resize while merging is better.
How about this?

        /* Do one big resize at the start, rather than incrementally
         * resizing.  At most one resize happen while merging.
         */
        if (USABLE_FRACTION(mp->ma_keys->dk_size) < other->ma_used) {
            assert(mp->ma_used < other->ma_used);
            if (dictresize(mp, ESTIMATE_SIZE(other->ma_used))) {
               return -1;
            }
        }
History
Date User Action Args
2016-10-26 01:47:13methanesetrecipients: + methane, rhettinger, benjamin.peterson, Mark.Shannon, serhiy.storchaka, xiang.zhang
2016-10-26 01:47:13methanesetmessageid: <1477446433.02.0.533180037015.issue28509@psf.upfronthosting.co.za>
2016-10-26 01:47:13methanelinkissue28509 messages
2016-10-26 01:47:12methanecreate