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 <1425758580.65.0.595454180374.issue23601@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1425758580.65.0.595454180374.issue23601@psf.upfronthosting.co.za>
2015-03-07 20:03:00Mark.Shannonlinkissue23601 messages
2015-03-07 20:03:00Mark.Shannoncreate