Skip to content

perf: cache ordered modules ids while sorting chunks #10908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2025

Conversation

LingyuCoder
Copy link
Contributor

Summary

The comparator will be called too many times, and then the get_orded_chunk_modules() will also be called many times with the same chunk ukey. So just add them too cache.

Before:
image

After:
image

Related links

Checklist

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

@LingyuCoder LingyuCoder requested a review from ahabhgk July 4, 2025 05:48
Copy link

netlify bot commented Jul 4, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 54d7987
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68676b43316c910008c95a30

@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 Jul 4, 2025
Copy link
Contributor

github-actions bot commented Jul 4, 2025

📦 Binary Size-limit

Comparing binary size with Commit: perf: parallelize getting full module names in the deterministic module ids plugin (#10906) by harpsealjs

❌ Size increased by 6.50KB from 59.85MB to 59.85MB (⬆️0.01%)

Copy link

codspeed-hq bot commented Jul 4, 2025

CodSpeed Performance Report

Merging #10908 will not alter performance

Comparing perf/cached-chunk-ids-ordered-modules (54d7987) with main (a31aa40)

Summary

✅ 16 untouched benchmarks

@LingyuCoder LingyuCoder merged commit 94ece6f into main Jul 4, 2025
69 of 72 checks passed
@LingyuCoder LingyuCoder deleted the perf/cached-chunk-ids-ordered-modules branch July 4, 2025 07:00
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy