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

cleanup mixed usage of charCode and codePoint #35

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

cometkim
Copy link
Owner

No description provided.

Copy link

changeset-bot bot commented May 16, 2024

🦋 Changeset detected

Latest commit: f165da4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
unicode-segmenter Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cometkim cometkim marked this pull request as ready for review May 16, 2024 02:38
Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ca5b4e3) to head (f165da4).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #35   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         2566      2661   +95     
=========================================
+ Hits          2566      2661   +95     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

graphemer 13'101 ns/iter (12'542 ns … 596 µs) 12'875 ns 15'417 ns 109 µs
grapheme-splitter 27'259 ns/iter (26'583 ns … 508 µs) 26'875 ns 31'500 ns 59'917 ns
unicode-rs/unicode-segmentation (wasm-pack) 5'590 ns/iter (5'471 ns … 6'420 ns) 5'609 ns 6'361 ns 6'420 ns
unicode-segmenter 1'820 ns/iter (1'730 ns … 2'428 ns) 1'853 ns 2'228 ns 2'428 ns
Copy link
Owner Author

@cometkim cometkim May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emoji is the only example here that is slower. I will follow up later to see if there is any specificity to it.

@cometkim cometkim merged commit f1a43ff into main May 16, 2024
5 checks passed
@cometkim cometkim deleted the opt-codepoint branch May 16, 2024 02:44
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.

None yet

1 participant