commit | 99bad131421eac4031bf12729a8ddaa2cda85a93 | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Fri Oct 02 09:22:52 2015 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Fri Oct 02 16:45:22 2015 -0700 |
tree | 73f729e24adb87f184691d0014cf377b398a6a64 | |
parent | 5d16f492d4d7604a71ec8bd1b5c03ae36423d871 [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