summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorVic Yang <victoryang@google.com>2019-06-02 21:10:53 -0700
committerVic Yang <victoryang@google.com>2019-06-04 21:01:04 -0700
commit3ec16be2bc371b2ff689ec70cd801f35e21db052 (patch)
tree17b990a5b5946b167a09ff7f27eedb1e8676f9fd /libc/malloc_hooks/malloc_hooks.cpp
parent44c29535cc472108f98e03575aa902bbe4ccee05 (diff)
linker: Speed up find_loaded_library_by_inode()
Rearrange the st_dev and st_ino checks to reduce the number of comparison needed. Test: Ran cameraserver on a Go device. Measured time spent in the linker and saw ~1% speed-up. Change-Id: I8e977ff37925eae3ba8348e7c4a01ce8af3b9b6d
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions