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 methane, rhettinger, serhiy.storchaka, vstinner, xiang.zhang
Date 2016-10-07.03:33:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475811182.59.0.223072248042.issue28199@psf.upfronthosting.co.za>
In-reply-to
Content
Since entries array is embedded in PyDictKeysObject, we can't realloc entries.
And while values are split array, dictresize() convert split table into combine table.

Split table may have enough size of ma_values at first in typical case.
And in not typical case, split table may not be used.
So I think realloc ma_values is premature optimization, unless profiler says make_keys_shared()
is slow.
History
Date User Action Args
2016-10-07 03:33:02methanesetrecipients: + methane, rhettinger, vstinner, serhiy.storchaka, xiang.zhang
2016-10-07 03:33:02methanesetmessageid: <1475811182.59.0.223072248042.issue28199@psf.upfronthosting.co.za>
2016-10-07 03:33:02methanelinkissue28199 messages
2016-10-07 03:33:02methanecreate