mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Java decoder is slow #159
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mzule on GitHub (Feb 13, 2017).
BrotliInputStream with brotli format is much slower than GZIPInputStream with gzip format. Is there any performance problem with java decoder?
Some statistics generated on my android device (xiaomi 4):
@eustas commented on GitHub (Feb 13, 2017):
GZIPInputStream is based on native library.
BrotliInputStream is a pure java implementation for platforms/products where embedding of native code is not allowed. For other platforms JNI wrapper should be used.
@mzule commented on GitHub (Feb 17, 2017):
Yes! JNI wrapper is much more efficient. Time cost is even less than gzip. Thank you!