Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ghabry opened this issue Apr 18, 2025 · 1 comment
Open

Comments

@Ghabry
Copy link
Member

Ghabry commented Apr 18, 2025

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 :).

@carstene1ns
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants