commit | 1a75a8cd4b46ee6ea596ee5d5c71256d21a2085b | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Tue Nov 19 10:06:11 2019 -0800 |
committer | Tom Cherry <tomcherry@google.com> | Tue Nov 19 10:10:37 2019 -0800 |
tree | b5200ba33b99c6d6e6abdebbdec235f34d4d26c4 | |
parent | 7d16aedc47552bbb67563ef6754a77c88b5821ea [diff] |
liblog: remove memset() before recv(). This is unneeded, since we're already checking the length returned by recv() and log_msg that is read for validity. It costs ~4% of CPU with `logcat -s` and ~2% of CPU when running simpleperf for 1 second on walleye on master. Bug: 144311420 Test: logcat works, simpleperf doesn't show memset() costing as much. Change-Id: I986e7e96518774034340f1b1201a2071a904e3bb