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 ezio.melotti
Recipients benjamin.peterson, ezio.melotti, lemburg, methane, serhiy.storchaka, terry.reedy, vstinner, xiang.zhang
Date 2017-09-17.04:26:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> The cache of size 2 x 256 slots can increase memory consumption by 50 KiB in worst case, 2 x 1024 -- by 200 KiB.

How much is this compared to the total usage?

> But I don't know how common `for c in s` or `s[i]` is used for Japanese text.

I think the same applies to other languages/scripts too, so this optimization might be moot unless the cache also improves performances of other more common operations (e.g. encoding/decoding).

It would be interesting to see how this affects real-world application: if there are no regressions and the memory overhead is not too much I think we can accept the patch.
Date User Action Args
2017-09-17 04:26:46ezio.melottisetrecipients: + ezio.melotti, lemburg, terry.reedy, vstinner, benjamin.peterson, methane, serhiy.storchaka, xiang.zhang
2017-09-17 04:26:45ezio.melottisetmessageid: <>
2017-09-17 04:26:45ezio.melottilinkissue31484 messages
2017-09-17 04:26:45ezio.melotticreate