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 joshtriplett, rhettinger
Date 2021-01-01.01:56:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609466176.99.0.483423539071.issue42799@roundup.psfhosted.org>
In-reply-to
Content
In addition to documenting the cache size, consider a substantial increase to the limit.   Compiled regex patterns tend to be very small.  We can afford to have a lot of them (tens of thousands seems reasonable to me).

Regarding the suggested alternative, ISTM that calling translate() directly doesn't help much.  For a cache miss, the overhead of the lru_cache() is very small relative to the work done by translate().
History
Date User Action Args
2021-01-01 01:56:17rhettingersetrecipients: + rhettinger, joshtriplett
2021-01-01 01:56:16rhettingersetmessageid: <1609466176.99.0.483423539071.issue42799@roundup.psfhosted.org>
2021-01-01 01:56:16rhettingerlinkissue42799 messages
2021-01-01 01:56:16rhettingercreate