summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-10-02 09:22:52 -0700
committerMark Salyzyn <salyzyn@google.com>2015-10-02 16:45:22 -0700
commitddda212faa81d62f637926680cd8163345120f71 (patch)
tree73f729e24adb87f184691d0014cf377b398a6a64 /base/errors_unix.cpp
parent5ac5c6b19364b5b3061a59db796b2357c95c3b64 (diff)
logd: optimize code hotspots
Discovered that we had a few libc hotspots. Adjust code to generally reduce or nullify the number of calls to malloc, free, strlen, strcmp, strncmp, memcmp & strncasecmp. Total gain looks to be about 3% of logd's processing time. malloc still contributes to 3%, but all others are now total 0.5%. Bug: 23685592 Change-Id: Ife721121667969260cdb8b055524ae90f5911278
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions