diff options
| author | Vic Yang <victoryang@google.com> | 2019-06-02 21:10:53 -0700 |
|---|---|---|
| committer | Vic Yang <victoryang@google.com> | 2019-06-04 21:01:04 -0700 |
| commit | 3ec16be2bc371b2ff689ec70cd801f35e21db052 (patch) | |
| tree | 17b990a5b5946b167a09ff7f27eedb1e8676f9fd /libc/stdio/stdio_ext.cpp | |
| parent | 44c29535cc472108f98e03575aa902bbe4ccee05 (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/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions
