Skip to content

Improve perf and package size - #37

Merged
blakeembrey merged 1 commit into
masterfrom
be/perf
Oct 29, 2026
Merged

blakeembrey merged 1 commit into
masterfrom
be/perf

Conversation

@blakeembrey

@blakeembrey blakeembrey commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Perf:

Input Previous ops/s Current ops/s Change
Plain URL 7.39M 14.96M +102%
Already encoded 7.94M 16.46M +107%
Spaces 3.18M 3.10M −2.5%
Unicode 2.34M 2.42M +3.2%
Emoji 1.58M 3.08M +94%
Unpaired surrogates 1.65M 2.35M +42%
Invalid escapes 2.52M 2.45M −2.8%
Long plain URL 256K 261K +1.9%

Slightly smaller build 227B to 201B.

@blakeembrey
blakeembrey added this pull request to stack #38 October 29, 2026 17:41
@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fcf5703) to head (f502226).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #37   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            6         5    -1     
  Branches         1         1           
=========================================
- Hits             6         5    -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread src/index.ts
.replace(ENCODE_CHARS_REGEXP, encodeURI);
const index = url.search(ENCODE_CHARS_REGEXP);
if (index === -1) return url;
return url.toWellFormed().replace(ENCODE_CHARS_REGEXP, encodeURI);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Base automatically changed from be/typescript to master October 29, 2026 17:45
@blakeembrey
blakeembrey merged commit 716b0fd into master Oct 29, 2026
6 checks passed
@blakeembrey
blakeembrey deleted the be/perf branch October 29, 2026 17:59
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