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 yselivanov
Recipients methane, vstinner, yselivanov
Date 2017-08-10.21:46:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>> PyDict_Copy creates a new empty dict object and then inserts key/values into it one by one.

> Why not creating a "preallocated" dict in that case? _PyDict_NewPresized()

I don't think it's related to the proposed patch.  Please take a look at the PR.  `_PyDict_NewPresized` and inserting entries one by one will not be faster than a `memcpy`.
Date User Action Args
2017-08-10 21:46:08yselivanovsetrecipients: + yselivanov, vstinner, methane
2017-08-10 21:46:08yselivanovsetmessageid: <>
2017-08-10 21:46:08yselivanovlinkissue31179 messages
2017-08-10 21:46:08yselivanovcreate