Skip to content

Comments

perf: some (hopefully) meaningful perf improvements#113

Open
moshetanzer wants to merge 3 commits intounjs:mainfrom
moshetanzer:perf/scule
Open

perf: some (hopefully) meaningful perf improvements#113
moshetanzer wants to merge 3 commits intounjs:mainfrom
moshetanzer:perf/scule

Conversation

@moshetanzer
Copy link

@moshetanzer moshetanzer commented Nov 20, 2025

Hey @pi0,

Hope you well.

Tried to optimize this a bit think - both of these could be meanignful. Added one test.

  1. use codePointAt instead of regex for uppercase detection (should be a 40% speed improvemnt based on a few small tests)
  2. optimize splitByCase splitter detection with Set lookup (should be a 20% speed imporvemnt)

@moshetanzer
Copy link
Author

moshetanzer commented Nov 20, 2025

Was just looking through issues and should solve this:

#92

@moshetanzer moshetanzer changed the title perf: some (hoppefuly) meaingful perf imporvments perf: some (hoppefuly) meaningful perf improvements Nov 20, 2025
@moshetanzer moshetanzer changed the title perf: some (hoppefuly) meaningful perf improvements perf: some (hopefully ) meaningful perf improvements Nov 20, 2025
@moshetanzer moshetanzer changed the title perf: some (hopefully ) meaningful perf improvements perf: some (hopefully) meaningful perf improvements Nov 20, 2025
@moshetanzer
Copy link
Author

@pi0 any thoughts here?

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.

1 participant