platform_system_core/libziparchive
Yurii Zubrytskyi 8ee7b1191a [zip] Stop calculating crc if it's not checked
Crc calculation shows up in the profiler in 2-5% range, and is
never currently validated. Let's disable it for good.
For a well-compressible test data the difference is even nicer:

Benchmark                       Time          CPU        Iteration
------------------------------------------------------------------
ziparchive-benchmarks:
before:
  #ExtractEntry/2            1943244 ns    1926758 ns          375
  #ExtractEntry/16           1877295 ns    1867049 ns          375
  #ExtractEntry/1024         1888772 ns    1879976 ns          373
after:
  #ExtractEntry/2             817003 ns     812870 ns          874
  #ExtractEntry/16            814029 ns     809813 ns          875
  #ExtractEntry/1024          804904 ns     800972 ns          879

Bug: 153392568
Test: atest, manual
Change-Id: I917abecab01301f1d09a5bf3b542d24b3875e359
Merged-In: I917abecab01301f1d09a5bf3b542d24b3875e359
2020-04-13 19:09:44 +00:00
..
cli-tests cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
include/ziparchive Allow loading zip at an offset in fd 2020-03-18 13:39:49 -07:00
testdata Fix SEGV in libziparchive with malformed zip file. 2019-12-17 08:39:09 -08:00
.clang-format add a performance benchmark for libziparchive 2017-05-30 10:50:14 -07:00
Android.bp Rename unzip.cpp to ziptool.cpp. 2019-12-13 16:47:22 -08:00
entry_name_utils-inl.h Ziparchive: Enable -Wconversion 2019-04-05 13:50:48 -07:00
entry_name_utils_test.cc Ran clang-format on libziparchive sources and headers 2017-07-02 11:46:53 +09:00
libziparchive_fuzzer.cpp libziparchive: add trivial fuzzer. 2019-10-22 11:45:49 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
run-ziptool-tests-on-android.sh cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
zip_archive.cc [zip] Stop calculating crc if it's not checked 2020-04-13 19:09:44 +00:00
zip_archive_benchmark.cpp [zip] Stop calculating crc if it's not checked 2020-04-13 19:09:44 +00:00
zip_archive_common.h Ran clang-format on libziparchive sources and headers 2017-07-02 11:46:53 +09:00
zip_archive_private.h Allow loading zip at an offset in fd 2020-03-18 13:39:49 -07:00
zip_archive_stream_entry.cc Ziparchive: Enable -Wconversion 2019-04-05 13:50:48 -07:00
zip_archive_test.cc Allow loading zip at an offset in fd 2020-03-18 13:39:49 -07:00
zip_writer.cc Avoid using data descriptors in ZIP files when possible. 2019-07-23 06:58:53 +00:00
zip_writer_test.cc Avoid using data descriptors in ZIP files when possible. 2019-07-23 06:58:53 +00:00
ziptool-tests.xml cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
ziptool.cpp Rename unzip.cpp to ziptool.cpp. 2019-12-13 16:47:22 -08:00