Skip to content

Use a Set for rapid membership check on known inputs before cache #56

@alanzabihi

Description

@alanzabihi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions