commit | b175dbd606990377e235820d2f9d41e7232e9fa0 | [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 | 2d05aa1794e736dfd7b526fc6a78cc831b365cc4 | |
parent | ee31bed0e9b1cfe135a0f9fca59fc24cf2cd4643 [diff] |
logd: optimize code hotspots (cherry pick from commit ebaf2d6dccc269ad640b139f687832d52678182c) 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