Merge "logd: simpleperf inspired optimizations" am: 7c20ab3e73
am: c895270ef2

* commit 'c895270ef22269885fe9bd1faed46c1ae4ebe316':
  logd: simpleperf inspired optimizations