Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

In large projects, loaders such as sass-loader or less-loader may emit a lot of warnings. In this case, Rspack will incur significant performance overhead in order to calculate the Error trace.

In an internal project, Less 4.3.0 emits 350,000 warnings. This PR changes the calculation of traces to on-demand, which can reduce the build time of the project from 40s+ to 20s.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added release: performance release: performance related release(mr only) team The issue/pr is created by the member of Rspack. labels Jun 16, 2025
@netlify
Copy link

netlify bot commented Jun 16, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 3389b3b
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/684fd0c5b2015d0008dd1f50

@codspeed-hq
Copy link

codspeed-hq bot commented Jun 16, 2025

CodSpeed Performance Report

Merging #10683 will not alter performance

Comparing trace_calc_0616 (3389b3b) with main (a076969)

🎉 Hooray! codspeed-rust just leveled up to 2.7.2!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

✅ 12 untouched benchmarks

@chenjiahan chenjiahan requested a review from ahabhgk June 16, 2025 08:33
@chenjiahan chenjiahan merged commit 9c84977 into main Jun 16, 2025
34 checks passed
@chenjiahan chenjiahan deleted the trace_calc_0616 branch June 16, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: performance release: performance related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants