]> gitweb.fperrin.net Git - Dictionary.git/commit
Fix performance of unpacking zip files.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 23 Jun 2017 21:09:02 +0000 (23:09 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 23 Jun 2017 21:09:02 +0000 (23:09 +0200)
commit81a6a5b64b423bad8f1bf0e3f24d0f65c585f44b
tree8c1b0886890b9c39854cc66df2f64ffcd3a2bc74
parentecbe4debc0551c4cfa96b8e952f65e98142c12f9
Fix performance of unpacking zip files.

Unfortunately the zip functions absolutely need
the input stream to be buffered, or performance will
be very bad.
Also the zip read functions return very short reads
(< 1 kB on average), so we need to buffer them up
to get a usable write size.
Using a FileChannel improves performance a little
bit in addition, but it's probably the least
critical change.
src/com/hughes/android/dictionary/DictionaryManagerActivity.java