diff options
author | Tom Cherry <tomcherry@google.com> | 2020-02-21 15:06:46 -0800 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2020-02-21 16:37:43 -0800 |
commit | 3574c37f98abec8bd2e1ba37c65997aa63d0eb0b (patch) | |
tree | 532db587151127313385ccb6b05aab24144d7f71 /libutils/ProcessCallStack_fuzz.cpp | |
parent | e53f8b8f9d0c52e927f970b42146f203611798d2 (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
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions