diff options
| author | jsthope <68657498+jsthope@users.noreply.github.com> | 2026-11-22 19:00:08 +0100 |
|---|---|---|
| committer | jsthope <68657498+jsthope@users.noreply.github.com> | 2026-11-22 19:17:52 +0100 |
| commit | 454ae0637c9ed45131e031e71cc7d912e0b24ac8 (patch) | |
| tree | 25464fbdcb032e3e92b980030f50931a5b3ab555 /runtime/src/pe_loader.cpp | |
| parent | ec8ec4c9a46c6623f1a9c125afd3566da97f1e0c (diff) | |
runtime: BufferVaIndex, an ordered VA -> buffer lookup
Buffers' VA ranges kept in a std::map by first VA: a lookup is a binary
search, walking down from the nearest start only while a range can still
reach the VA (bounded by the longest range), so aliasing placed buffers
that overlap still resolve, to the range that starts closest below the VA
(the larger ID on a tie).
buffer_va_index_test checks edges, overlapping and nested ranges,
re-registration and erase, then 200 random tables against a linear scan
with the same rule, and prints the lookup time against the scan over every
resource that buffer_at does today (--bench for 50k and 100k resources).
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions