diff options
author | Elliott Hughes <enh@google.com> | 2020-04-29 14:10:12 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2020-04-29 16:49:13 -0700 |
commit | 08929cc389bbaebaf2594bc1897bc0b3980f9664 (patch) | |
tree | 253d2bd7b090a51d69f2467bdb8ab2a7cfdc49cf /libutils/FileMap_test.cpp | |
parent | 053ade4320900cdf08bdd59299ad5d8c1a3a6ebd (diff) |
Avoid zero-initializing our most-used buffers.
The StringPrintf one is heavily used and brings the overhead versus
fmtlib down to 1.5x rather than 2x. I don't have a convenient benchmark
for the other two.
Test: libbase tests & benchmarks
Bug: http://b/155324241
Change-Id: I9e704a360846d5520c53f668e7c315b0c0ea55f8
(cherry picked from commit 8c253d4d42018d77b78de8f8c70c6204f5aa6d0e)
Diffstat (limited to 'libutils/FileMap_test.cpp')
0 files changed, 0 insertions, 0 deletions