Skip to content

Investigate V8 String.prototype.length optimization for cache key #64

@alanzabihi

Description

@alanzabihi

If the cache key is the raw input string, V8 may need to compute length repeatedly for Map hash. Consider a compound key string||length that already encodes length. Or measure whether V8's String object shape keeps length cached. Target: speculative 0-0.5ms. Fingerprint exact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions