summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/ObjC.cpp
diff options
context:
space:
mode:
authorMark Rowe <mrowe@bdash.net.nz>2025-02-19 18:48:50 -0800
committerMason Reed <mason@vector35.com>2025-04-02 05:36:54 -0400
commit721d24be648eccae72fe97f89f0fbd18de36af8a (patch)
treedf60eb436a7af5d5a19aaf37645e1456636ae5af /view/sharedcache/core/ObjC.cpp
parentc67eecce0d87c3738c9a133e3d2f502ce28f37dd (diff)
[SharedCache] Make it faster to look up which image contains an address
`MemoryRegion` now tracks the start address of the image to which it belongs. `SharedCache::HeaderForAddress` uses the existing address range map to quickly find the `MemoryRegion` for a given address, and from there can look up the image via its start address. Some extra logic is added to `CacheInfo::Load` to populate the image start address on `MemoryRegion` when loading from metadata that predates this change. The result is that `HeaderForAddress` is no longer the most expensive part of `FindSymbolAtAddrAndApplyToAddr`.
Diffstat (limited to 'view/sharedcache/core/ObjC.cpp')
0 files changed, 0 insertions, 0 deletions