Skip to content

lexers.Get is very slow when the lexer is not found #714

@bep

Description

@bep

See benchmark in #713

I'm not sure if this is cacheable, but you should at least consider a note in the GoDoc, as this came as a pretty big surprise to me when I found this lighting up like a Christmas tree in a pprof profile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions