tag | ccbb558867a259f20af4660cc3d65a6e917c7ae1 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Jul 30 09:53:58 2012 -0700 |
object | 02e0e9bce2706f0024e6f51275e2834dfacdb570 |
Android 4.1 CTS release 1
commit | 02e0e9bce2706f0024e6f51275e2834dfacdb570 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Jul 26 10:32:29 2012 -0700 |
committer | Elliott Hughes <enh@google.com> | Thu Jul 26 10:56:54 2012 -0700 |
tree | 52565e3f6a1e4e96f5dc7d7787ebbc1653c49fb8 | |
parent | f19b9c467fb584a79463357e160c0a41c80d05c8 [diff] |
Make ZipFileTest#testHugeZipFile faster, and reduce ZipFile memory usage. This test was timing out because of unbuffered I/O. ZipFile was creating an unnecessary byte[] when writing out the central directory. In the case of these tests, that was an extra 3MiB of heap! (cherry-picked from a57c521b9d250f909508af771b96c0011676a968.) Bug: 6481730 Change-Id: I923e563421056c9c0e73246357ccf54d8fb60cdb