Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance #49

Merged
merged 1 commit into from
May 6, 2023
Merged

Improve performance #49

merged 1 commit into from
May 6, 2023

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