Commit Graph
2 Commits
Author SHA1 Message Date
LibretroAdmin 730feb360e core options: keys found in slots past 64 options
GET_VARIABLE and SET_CORE_OPTIONS_DISPLAY looked through every option
for the key. Past 64 options the keys are put in slots by their hash
when the options are made, and probed; up to 64 the walk in order is
quicker and stays. A lookup among 400 options takes 87 cycles, not 239;
among 200, 53 for 151.
2026-10-28 12:02:29 +01:00
LibretroAdmin 631c443892 core options, runahead: one allocation for value hashes, flat input list
Option value hashes live in one pool per manager, indexed by value,
and every value and label append is checked, so a failed append ends
the parse without writing outside a list. The legacy parser reads the
description and values in place from the variable string.

Runahead's input logging keeps the tuples the dense cache has no slot
for in one flat array; each tuple's ids are sized on first write.

samples/core_options drives the manager with each append failing in
turn; samples/runahead covers the input list, including each realloc
failing in turn.
2026-10-15 22:55:31 +02:00