[issue28832] Reduce memset in dict creation

Serhiy Storchaka report at bugs.python.org
Tue Nov 29 11:44:18 EST 2016


Serhiy Storchaka added the comment:

I think that clearing 120 bytes at a time is faster than clear it later entry-by-entry.

Your patch removes some asserts, this looks not good.

Could your provide microbenchmarks that show the largest speed up and the largest slow down? So we would see what type of code gets the benefit.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28832>
_______________________________________


More information about the Python-bugs-list mailing list