Quote:
Originally Posted by ixtab
So... about the system locales. I again looked into the "using precompiled system locale bundles" vs "compiling on the Kindle itself" thing.
Since compiling on the Kindle will need the sources and the charmap, I now have a clear preference for using pre-compiled bundles, even if they require more one-time space in the repo.
The reason is simple: The charmap file itself is 2 MB, and compresses down to around 350kB. This means that the sources will actually be larger than the pre-packaged file, plus this way will require additional tasks on the device itself, plus the effort to produce the bundles is much higher as well. So I'll now modify the tool to work with pre-compiled bundles, and we'll see where we end up.
|
You've shown that size of one pre-compiled locale definition is mostly about 300kB compressed. And size of sources for one locale definition (common UTF-8 charmap + appropriate input files) is mostly about 400kB compressed. Difference is ~100kB. Let's say all files in glibc's
locales directory are for existing locales, now there are 297 of them. So advantage in size of snapshot with current l10n update bundles will be ~30-35MB at most. Now there are update bundles only for 15 locales. So advantage in size of snapshot should be about 1500kb (I didn't checked it, though). In absolute numbers it should be like 4.7MB vs 6.2MB.
And we'll end up with 55MB repo with pre-compiled locales against 30MB repo with just their's sources.
I'm not arguing against your decision with this comparison. Just calculated overall numbers and wanted to share them.
And points about doing of additional work on Kindle and more efforts for update bundle's producing are completely valid.
BTW, JS tool is completed in the sense that it's now can compile .properties back to fully usable JS. I'm polishing it's code now (by restructuring and refactoring, commenting), but it's in working state. (However, I didn't tested resulting JS on KT yet, because I haven't access to KT right now.) Expect merging of js-tool branch into master and uploading of resources to Transifex soon.