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 Mark.Shannon
Recipients Mark.Shannon, jtaylor, lemburg, pitrou, rhettinger, serhiy.storchaka, tim.peters
Date 2015-03-07.20:03:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I don't remember why PyMem_Malloc rather than PyObject_MALLOC was used, it may have been inherited from the allocation of dict tables in the earlier implementation.

My only concern is that the benchmark only tests performance for very small dictionaries. The small object allocator is limited to 512 bytes before it falls back on malloc, so for larger dict keys the speed up would vanish.

A benchmark with a range of sizes would be more convincing, if only to show that it is no slower for larger dicts.
Date User Action Args
2015-03-07 20:03:00Mark.Shannonsetrecipients: + Mark.Shannon, lemburg, tim.peters, rhettinger, pitrou, jtaylor, serhiy.storchaka
2015-03-07 20:03:00Mark.Shannonsetmessageid: <>
2015-03-07 20:03:00Mark.Shannonlinkissue23601 messages
2015-03-07 20:03:00Mark.Shannoncreate