Skip to content
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

Save produced json in a more compact UTF-8 format #8016

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Conversation

biodranik
Copy link
Member

@biodranik biodranik commented Apr 27, 2024

This change will reduce the size of generated countries.txt from 405K to 355K, which is beneficial for app size and for future transfers over the wire.

@rtsisyk
Copy link
Contributor

rtsisyk commented Apr 28, 2024

This change will reduce the size of generated countries.txt from 405K to 355K, which is beneficial for app size and for future transfers over the wire.

Isn't it zipped already?

@biodranik
Copy link
Member Author

Isn't it zipped already?

No. We store resources uncompressed in the zip to be able to read them from there without random zip reader access. However, this can be improved for most files that are loaded as a single buffer block.

Decoding JSON would be also a bit faster, as less characters should be processed.

@biodranik
Copy link
Member Author

@vng hm, looks like these changes are not related to the generator's output. What is the right place to fix it?

@vng
Copy link
Member

vng commented Apr 28, 2024

I suppose, somewhere in tools/python/maps_generator

This change will reduce the size of generated countries.txt from 405K to 355K
and speed up loading/decoding of the countries list.

Signed-off-by: Alexander Borsuk <me@alex.bio>
@biodranik
Copy link
Member Author

@vng thanks, fixed.

@biodranik biodranik merged commit 45b1100 into master Apr 28, 2024
15 checks passed
@biodranik biodranik deleted the ab-json-utf8 branch April 28, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants