commit | ca053283bf6a96d4a8fa4e33abf1da389cf27317 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Apr 29 14:10:12 2020 -0700 |
committer | Elliott Hughes <enh@google.com> | Wed Apr 29 16:49:13 2020 -0700 |
tree | 253d2bd7b090a51d69f2467bdb8ab2a7cfdc49cf | |
parent | 9b3886f2d1583d7b1abab7014d414f6ab08866cb [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)