Skip to content

Profile-guided: swap cache to Map with string values for V8 hidden-class stability #62

@alanzabihi

Description

@alanzabihi

V8 tracks Map entry shape. Current cache Map<string, number>. Sometimes Map<string, string> with Number() wrapping gives better V8 shape stability. Measure both; preserve fingerprint. Target: 0.3-1ms if there's hidden-class churn; may be neutral. Low risk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions