Skip to content

Conversation

TrickyPi
Copy link
Member

@TrickyPi TrickyPi commented Aug 6, 2025

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:
resolves #6056

Description

The previous fallback logic(#5985) for trace segments had serious performance issues. After the modification, the algorithm now starts from the end position of the binary search to find a approximated segment index.

Copy link

vercel bot commented Aug 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rollup Ready Ready Preview Comment Aug 17, 2025 4:44pm

Copy link

github-actions bot commented Aug 6, 2025

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#fix/source-map-pref-regression

Notice: Ensure you have installed the latest nightly Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust.

or load it into the REPL:
https://rollup-bssieztyu-rollup-js.vercel.app/repl/?pr=6057

Copy link

github-actions bot commented Aug 6, 2025

Performance report

  • BUILD: 6950ms, 836 MB (+2%)
    • initialize: 0ms, 24.8 MB
    • generate module graph: 2591ms, 634 MB
      • generate ast: 1395ms, 622 MB
    • sort and bind modules: 387ms (-12ms, -3.0%), 694 MB
    • mark included statements: 3964ms, 836 MB (+2%)
      • treeshaking pass 1: 2338ms, 831 MB
      • treeshaking pass 2: 460ms, 847 MB
      • treeshaking pass 3: 397ms, 837 MB (+2%)
      • treeshaking pass 4: 381ms, 805 MB (-2%)
      • treeshaking pass 5: 378ms, 836 MB (+2%)
  • GENERATE: 820ms (-229ms, -21.8%), 926 MB
    • initialize render: 0ms, 946 MB
    • generate chunks: 182ms, 869 MB (-11%)
      • optimize chunks: 0ms, 892 MB (-8%)
    • render chunks: 642ms (-169ms, -20.8%), 900 MB
    • transform chunks: 18ms, 926 MB
    • generate bundle: 0ms, 926 MB

Copy link

codecov bot commented Aug 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.79%. Comparing base (ae83c6e) to head (4629c1a).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6057      +/-   ##
==========================================
- Coverage   98.79%   98.79%   -0.01%     
==========================================
  Files         271      271              
  Lines       10601    10598       -3     
  Branches     2830     2830              
==========================================
- Hits        10473    10470       -3     
  Misses         88       88              
  Partials       40       40              

☔ 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.

@lukastaegert lukastaegert added this pull request to the merge queue Aug 18, 2025
Merged via the queue into master with commit f1e123b Aug 18, 2025
42 checks passed
@lukastaegert lukastaegert deleted the fix/source-map-pref-regression branch August 18, 2025 05:02
Copy link

This PR has been released as part of rollup@4.46.3. You can test it via npm install rollup.

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.

Sourcemap generation is slow on big 3rd party libraries
2 participants