Files
AnyPS5/docs/dev
teepeanandClaude Opus 5.5 5da86019ac perf(agc): find a host import among the last ones found first
HostImportFor walks the import map under the import mutex for every
in-place vertex input, index buffer and label it serves, most of them
for the same few buffers. It now first checks the last four imports a
lookup found, while the map is the one they came from: the imports epoch
moves with every retire and trim and the map's size with every insert.
Imports in the map never overlap, so the one that contains the range is
the map's answer. A hit counts its use as a map lookup does, so imports
age out of their eviction protection after as many lookups as before.
APS5_NO_RECENT_IMPORTS looks every import up in the map.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-23 00:31:02 +03:00
..