summaryrefslogtreecommitdiff
path: root/tests/stdio_test.cpp
diff options
context:
space:
mode:
authorVic Yang <victoryang@google.com>2019-07-25 11:05:33 -0700
committerVic Yang <victoryang@google.com>2019-07-25 13:31:55 -0700
commit521ad0727033aedcd6067e22049a3bb285682efb (patch)
tree3afc6cb853cd8032ebb1a4e9ed3aaec99d8897f6 /tests/stdio_test.cpp
parent542db792dc3ad9dd73a1c22c031c16c2a3c85690 (diff)
linker: Speed up relocation with an 1-entry symbol cache
When relocating a DSO, it is not unusual to have consecutive relocations using the same symbol. In this case, it is wasteful to perform the same symbol lookup. This change implements an 1-entry symbol cache so that symbol lookup results are reused in such scenario. Test: On cuttlefish, enable STATS in linker_debug.h. Boot and see RELO STATS in logcat showing cache hits. Hit rate seen is mostly within 15% to 45%. Change-Id: I84783d3b9a6ac9e39ed7fb45e58f6b3c012478d0
Diffstat (limited to 'tests/stdio_test.cpp')
0 files changed, 0 insertions, 0 deletions