Gregory P. Smith added the comment: Running the https://hg.python.org/benchmarks suite against this change (edited to not have the warning about PyTupleObject* vs PyObject* types) I see no repeatably significant benefits and one that is consistently a few percent slower no matter how many times I run it: nbody.
### nbody ### Min: 0.226902 -> 0.236582: 1.04x slower Avg: 0.231973 -> 0.238949: 1.03x slower Significant (t=-11.98) Stddev: 0.00507 -> 0.00286: 1.7751x smaller That seems odd to me, but _might_ be related to the additional call overhead. Regardless, I don't think this patch is really an optimization. ---------- nosy: +gregory.p.smith priority: normal -> low title: avoid memset in small tuple creation -> avoid needless pointers initialization in small tuple creation _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21148> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com