summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorYurii Zubrytskyi <zyy@google.com>2020-04-06 19:35:33 -0700
committerYurii Zubrytskyi <zyy@google.com>2020-04-08 13:55:54 -0700
commit8d8f637ee5a09ea37290120942ae902f8e68773d (patch)
treed9850d848c1d42034e806f2aa9a67ff98cdcfdf6 /trusty/coverage/coverage_test.cpp
parente1948bf7443dfef2eee82148e372410ab6f26d6c (diff)
[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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions