You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add DWARFInfo.skip_cache() and DWARFInfo.enable_cache() to give users
the ability of controlling cache.
For the case of parsing the DWARF of a large binary, we may want to
skip the cache to release the memory ASAP, avoiding extra CPU cycles
on maintaining a cache.
One of my use cases is to extract types, functions, and call sites
from the DWARF of a Linux kernel image. With caches, it takes about
573 seconds to go through all DIEs. Skipping caches reduces time to
448 seconds. It is about 27% faster. When going through every DIEs
sequentially, cache doesn't help use at all.
0 commit comments