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 serhiy.storchaka
Recipients ezio.melotti, jonash, mrabarnett, serhiy.storchaka
Date 2021-10-15.09:22:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634289766.67.0.137615370623.issue45462@roundup.psfhosted.org>
In-reply-to
Content
For reference, caching was introduced in b1aa19515ffdb84c6633ee0344196fd8bd50ade0 21 years ago, and initially it checked for pre-compiled patterns before looking up in the cache. But it was changed 2 months later in 7898c3e6852565046a9b8b063d35d66777bf5176 and since then the cache was checked first. There was no explicit note about this in commit message, but I think that it was done to speed up the common case.

There were many changes in the caching mechanism, but this part of logic was left unchanged. Maybe if once we implement fast dispatch by the type of the first argument we reconsider this code.
History
Date User Action Args
2021-10-15 09:22:46serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, jonash
2021-10-15 09:22:46serhiy.storchakasetmessageid: <1634289766.67.0.137615370623.issue45462@roundup.psfhosted.org>
2021-10-15 09:22:46serhiy.storchakalinkissue45462 messages
2021-10-15 09:22:46serhiy.storchakacreate