buildscripts icon indicating copy to clipboard operation
buildscripts copied to clipboard

ICU: Consider ``--with-data-packaging=files`` option for low mem targets

Open Ghabry opened this issue 7 months ago • 1 comments

I played around a bit with this setting combined with debug flag which emits debug traces and this feature appears to be quite useful:

The files option creates individual files for all the encoding so you have a file for 1252, 932, normalization etc.

And the best part: Based on the traces it does lazy load the folder so it will only load the encodings that are requested - no huge shift-jis in memory when only western europe is used. This can easily safe a 1 MB of RAM on low mem devices like the Wii :).

Ghabry avatar Apr 18 '25 15:04 Ghabry

Problem is it either needs a shared location (like rtp), which may have outdated files, or we would need to distribute them along the binary.

Also error detection/warning messages for these cases would be needed.

carstene1ns avatar Apr 18 '25 16:04 carstene1ns