Skip to content

Comments

Improve performance#49

Merged
sindresorhus merged 1 commit intosindresorhus:mainfrom
fisker:replace
May 6, 2023
Merged

Improve performance#49
sindresorhus merged 1 commit intosindresorhus:mainfrom
fisker:replace

Conversation

@fisker
Copy link
Contributor

@fisker fisker commented May 6, 2023

  • Remove emoji replacement (reduce ~30% time as tested on 600 emojis)
  • Remove splitString, as tested cache new Intl.Segmenter doesn't affect performance.

@sindresorhus sindresorhus merged commit fe356d8 into sindresorhus:main May 6, 2023
@fisker fisker deleted the replace branch May 6, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants