Skip to content

Performance enhancments #1

@alvinlindstam

Description

@alvinlindstam

The current code is a quick write up which is not very optimized, I just wanted it to be correct and simple to begin with.

  • Add benchmarks, to be able to actually measure any gains
  • Look at codepoint group lookups. Could we optimize lookup order for most common groups? Check upper/lower bounds of group before checking all individual ranges?
  • Speed up iteration logic? Should we always return the graphemes and join strings etc, even when only needed for counting or getting lengths?
  • Add documentation for performance considerations. Notes about linear performance scaling etc.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions