Skip to content

Core API can be more efficient #1212

@btmills

Description

@btmills

There are slight but measurable performance gains to be had from refactoring how tokens are handled internally by the tokens API. Right now, tokens are indexed in a sparse array, and traversal is done (nearly) linearly based on the range index, with some intelligent skips where possible. PR to follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions