commit | 99d7cc32c2af84374d8034461a5576ff673b7aaf | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Fri Feb 21 15:06:46 2020 -0800 |
committer | Tom Cherry <tomcherry@google.com> | Fri Feb 21 16:37:43 2020 -0800 |
tree | 189215c2d924352163cbfdc89b6d88a8ae7b64b0 | |
parent | 47384ebfdd1bb644b5d743894463844373a21abb [diff] |
liblog: add __attribute__((uninitialized)) to liblog buffers These buffers are immediately written into with *printf() and are in the hot path, so do not initialize them. This saves ~70ns off of each log message, which is ~14% of the overhead within __android_log_print() when writing to a no-op logger. Test: liblog benchmarks Change-Id: I2b898e72c75b57bc63fee565b49a4e00e377ed1a