commit | 5ac17753c3234abf9e33e7b37f6a5b71b0adb839 | [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 | 48d481b4f4ca738c987a02da76dcdb8077ada090 [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