This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients corona10, miss-islington, pablogsal, petr.viktorin, phsilva, rhettinger, serhiy.storchaka, shihai1991, vstinner
Date 2021-04-11.05:08:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618117719.18.0.473869674983.issue40137@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-04-11 05:08:39rhettingersetrecipients: + rhettinger, vstinner, phsilva, petr.viktorin, serhiy.storchaka, corona10, pablogsal, miss-islington, shihai1991
2021-04-11 05:08:39rhettingersetmessageid: <1618117719.18.0.473869674983.issue40137@roundup.psfhosted.org>
2021-04-11 05:08:39rhettingerlinkissue40137 messages
2021-04-11 05:08:38rhettingercreate