Skip to content

Improve Symbol::to_proc method caching #97

@wnewbery

Description

@wnewbery

Because a new SymbolProc object is always constructed, the first call is always a cache miss. This includes the common case of passing symbol procs directly to enumerable methods like map or select.

Consider the possibility of making the inline cache a part of the long lived Symbol instances, or optimising the &:symbol use case.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions