Skip to content

Improve compile performance#436

Merged
blakeembrey merged 2 commits intomasterfrom
be/faster-compile
Apr 1, 2026
Merged

Improve compile performance#436
blakeembrey merged 2 commits intomasterfrom
be/faster-compile

Conversation

@blakeembrey
Copy link
Copy Markdown
Member

Improves compile performance by ~25% in the benchmarks added by removing the destructuring and passing the missing parameters array around, removing all extra arrays that get created.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.74%. Comparing base (5844988) to head (9a0b337).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #436   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files           1        1           
  Lines         393      398    +5     
  Branches      156      158    +2     
=======================================
+ Hits          392      397    +5     
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 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.

@blakeembrey
Copy link
Copy Markdown
Member Author

Before:

 ✓ src/index.bench.ts > compile 732ms
     name                     hz     min     max    mean     p75     p99    p995    p999     rme  samples
   · compiling paths  696,964.82  0.0012  4.4146  0.0014  0.0013  0.0023  0.0034  0.0103  ±1.86%   348483

After:

 ✓ src/index.bench.ts > compile 766ms
     name                     hz     min     max    mean     p75     p99    p995    p999     rme  samples
   · compiling paths  911,081.95  0.0009  3.2242  0.0011  0.0010  0.0014  0.0022  0.0057  ±1.76%   455541

@blakeembrey blakeembrey merged commit 57247e6 into master Apr 1, 2026
8 checks passed
@blakeembrey blakeembrey deleted the be/faster-compile branch April 1, 2026 20:38
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