STINNER Victor <vstin...@python.org> added the comment:

msg391004 benchmark comparing master with Raymond's optimization (commit 
139c232f3851b393798d0ea4e65f1298bfbcd9cf) compared to Python 3.9:

Mean +- std dev: [py39] 38.8 ns +- 0.5 ns -> [obj_cache] 40.3 ns +- 0.1 ns: 
1.04x slower

For me, these numbers make no sense :-D Getting kwd_mark from the instance 
(Raymond's new code) *must* be faster than calling _PyType_GetModuleByDef() on 
the instance.

As I wrote in my previous comment, my bet is that PGO is not reproducible and 
so we should not pay too much attention to differences of a few nanoseconds.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40137>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to