Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

FWIW, I've only looked at the lru_cache() code.  Someone should go through all 
the PyModule_GetState calls to see if they are on a critical path.  AFAICT a 
huge number of these changes were applied without regard to whether or not they 
occurred on an existing fast path.

This is a considerable number of clock cycles for a type lookup that used to be 
almost cost free.  Whether it is high or low impact greatly depends on whether 
the surrounding code was doing a lot of work or very little work.  In thin 
functions, the incremental costs will be higher.

----------

_______________________________________
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