commit | a17c2b694ce53a484f534ba7abab7ec12cd4ffcc | [log] [tgz] |
---|---|---|
author | David Srbecky <dsrbecky@google.com> | Tue Apr 14 16:59:27 2020 +0100 |
committer | Christopher Ferris <cferris@google.com> | Thu Apr 16 15:03:19 2020 -0700 |
tree | 9fbc74ee5582c15d71067201c46b7c5b3d554035 | |
parent | 8c6d5bf83c9551264932e8d4268870cc26567fed [diff] |
Optimize Memory::ReadString This function is responsible for majority of CPU time in prefetto. Reduce the number of memory reads (don't read strings byte-by-byte). Update all calls of ReadString to include the third parameter to have a max read. Add an Elf creation benchmark since this function is on the elf creation path. Test: libunwindstack_unit_test Change-Id: Ia36e1f1a5ba76c9e9f13c43fb9e3691dde7897f2