commit | fa98513d27acb3f167fcb7eee9e7a45070c3757c | [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 | a6850d8603b48cd15c2e4f3244bdb62ea7d6e641 [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