A Set of frequently-seen inputs can short-circuit cache lookup with a simpler hash. V8's Set.has is sometimes faster than Map.get when only membership matters. Combined: Set.has(input) -> array lookup by position. Fingerprint must match. Speculative but worth a data point. Target: 0-1ms, potentially neutral.
A Set of frequently-seen inputs can short-circuit cache lookup with a simpler hash. V8's Set.has is sometimes faster than Map.get when only membership matters. Combined: Set.has(input) -> array lookup by position. Fingerprint must match. Speculative but worth a data point. Target: 0-1ms, potentially neutral.