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

Issues for Android about replacing gzip using zstd #182

Open
yuanyetao opened this issue Jul 21, 2021 · 5 comments
Open

Issues for Android about replacing gzip using zstd #182

yuanyetao opened this issue Jul 21, 2021 · 5 comments

Comments

@yuanyetao
Copy link

yuanyetao commented Jul 21, 2021

Hi
I am attempting to use zstd in Android App to replace gzip.In Android,use zstd dictionary to uncompress data which is compressed in backend server.After serveral tests,i found that zstd dictionary uncompress slower than gzip.Gzip cost about 6ms but Zstd dictionary cost about 33ms.
Is the test result reasonable?Zstd dictionary uncompress slower than gzip?
I found some body run into the same question(facebook/zstd#501). Terrelln tried to run a build optimized with -0s and got decompressed faster than before. Shall we provide an android arr package which is built optimized with -0s ?

@luben
Copy link
Owner

luben commented Jul 21, 2021

Hmm, I was relying on the default optimization done by the NDK build, which is -O2. I think it's worth trying optimizing for size. I have just pushed a build change for it and will release it today so you can try.

@luben
Copy link
Owner

luben commented Jul 21, 2021

v1.5.0-4 has the optimized for size Android build. Can you try it?

@yuanyetao
Copy link
Author

v1.5.0-4 has the optimized for size Android build. Can you try it?

Wonderful,i will try it in my app compared with the older version. The optimized result will feed back later.

@yuanyetao
Copy link
Author

v1.5.0-4 has the optimized for size Android build. Can you try it?

We'v tried in Android. No optimized for uncompressing data in android devices.

@luben
Copy link
Owner

luben commented Jul 27, 2021

Hmm, strange, I have no idea what is the issue and how it can be better optimized.

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

No branches or pull requests

2 participants