Message302358
> 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:46 | ezio.melotti | set | recipients:
+ ezio.melotti, lemburg, terry.reedy, vstinner, benjamin.peterson, methane, serhiy.storchaka, xiang.zhang |
2017-09-17 04:26:45 | ezio.melotti | set | messageid: <1505622405.94.0.0162262511323.issue31484@psf.upfronthosting.co.za> |
2017-09-17 04:26:45 | ezio.melotti | link | issue31484 messages |
2017-09-17 04:26:45 | ezio.melotti | create | |
|