commit | 9c4cd262b0fed07ad844f13405a5fa0eb9ca26ea | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Fri Oct 02 09:22:52 2015 -0700 |
committer | Rom Lemarchand <romlem@google.com> | Mon Nov 16 08:53:04 2015 -0800 |
tree | 2f971fb69157cbe296e97b9abcb24609ad005e34 | |
parent | 7dbed10857f6f0262368301152144a2e025e8cbd [diff] |
logd: optimize code hotspots (cherry pick from commit ddda212faa81d62f637926680cd8163345120f71) 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