upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorjsthope <68657498+jsthope@users.noreply.github.com>2026-11-22 19:00:08 +0100
committerjsthope <68657498+jsthope@users.noreply.github.com>2026-11-22 19:17:52 +0100
commit454ae0637c9ed45131e031e71cc7d912e0b24ac8 (patch)
tree25464fbdcb032e3e92b980030f50931a5b3ab555 /runtime/src/pe_loader.cpp
parentec8ec4c9a46c6623f1a9c125afd3566da97f1e0c (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