aboutsummaryrefslogtreecommitdiff
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
committerceltare21 <celtare21@gmail.com>2019-06-26 22:16:21 +0300
commit884c0f5538c633796920a88b6ae94b0935dcc29e (patch)
tree40f22ff6b6f4e9ba70088e7f20142f9085659f77 /libc/malloc_hooks/malloc_hooks.cpp
parente3ef7311b698bc27fe673adb577a34f11dc4f42a (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