Skip to content

refactor(core): remove unused exports final name metadata#14003

Merged
JSerFeng merged 3 commits into
mainfrom
codex/pass-interned-normal-module-requests
May 12, 2026
Merged

refactor(core): remove unused exports final name metadata#14003
JSerFeng merged 3 commits into
mainfrom
codex/pass-interned-normal-module-requests

Conversation

@LingyuCoder

@LingyuCoder LingyuCoder commented May 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove unused exports_final_name metadata from core module build metadata.
  • Remove the corresponding exportsFinalName field from the binding API and generated napi types.

Validation

  • cargo fmt --all --check
  • cargo check -p rspack_core -p rspack_binding_api --all-targets --locked

@LingyuCoder LingyuCoder requested review from JSerFeng and Copilot May 12, 2026 03:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Refactors NormalModule request fields to use Ustr interned strings to reduce repeated allocations/clones and centralize interning at module construction call sites.

Changes:

  • Convert NormalModule’s request, user_request, and raw_request from String to Ustr with cacheable annotations.
  • Update NormalModuleFactory to pass interned Ustr values into NormalModule::new.
  • Replace user_request_mut with set_user_request to ensure updates are re-interned.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
crates/rspack_core/src/normal_module_factory.rs Intern request strings before calling NormalModule::new, avoiding String cloning.
crates/rspack_core/src/normal_module.rs Store request strings as Ustr, adjust accessors, and replace mutable accessor with a setter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/rspack_core/src/normal_module.rs Outdated
Comment thread crates/rspack_core/src/normal_module.rs Outdated
@github-actions

github-actions Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

📦 Binary Size-limit

Comparing 05ed6a7 to chore(deps): update dependency mermaid to v11.15.0 [security] (#13997) by renovate[bot]

🎉 Size decreased by 16.00KB from 61.97MB to 61.95MB (⬇️0.03%)

@github-actions

github-actions Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 6 projects in monorepo, 6 projects with changes.

📊 Quick Summary
Project Total Size Change
popular-libs 1.7 MB -
react-10k 5.7 MB -
react-1k 826.3 KB -
rome 1.6 MB -
react-5k 2.7 MB -
ui-components 4.8 MB -
📋 Detailed Reports (Click to expand)

📁 popular-libs

Path: ../build-tools-performance/cases/popular-libs/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 1.7 MB - -
📄 JavaScript 1.7 MB - -
🎨 CSS 0 B - -
🌐 HTML 289.0 B - -
📁 Other Assets 0 B - -

📁 react-10k

Path: ../build-tools-performance/cases/react-10k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 5.7 MB - -
📄 JavaScript 5.7 MB - -
🎨 CSS 21.0 B - -
🌐 HTML 328.0 B - -
📁 Other Assets 0 B - -

📁 react-1k

Path: ../build-tools-performance/cases/react-1k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 826.3 KB - -
📄 JavaScript 826.0 KB - -
🎨 CSS 0 B - -
🌐 HTML 328.0 B - -
📁 Other Assets 0 B - -

📁 rome

Path: ../build-tools-performance/cases/rome/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 1.6 MB - -
📄 JavaScript 1.6 MB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 react-5k

Path: ../build-tools-performance/cases/react-5k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 2.7 MB - -
📄 JavaScript 2.7 MB - -
🎨 CSS 21.0 B - -
🌐 HTML 328.0 B - -
📁 Other Assets 0 B - -

📁 ui-components

Path: ../build-tools-performance/cases/ui-components/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 4.8 MB - -
📄 JavaScript 4.7 MB - -
🎨 CSS 107.0 KB - -
🌐 HTML 328.0 B - -
📁 Other Assets 0 B - -

Generated by Rsdoctor GitHub Action

@codspeed-hq

codspeed-hq Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 34 untouched benchmarks
⏩ 25 skipped benchmarks1


Comparing codex/pass-interned-normal-module-requests (05ed6a7) with main (46dec16)

Open in CodSpeed

Footnotes

  1. 25 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@LingyuCoder LingyuCoder force-pushed the codex/pass-interned-normal-module-requests branch from 3cc4ce2 to 74cba1b Compare May 12, 2026 04:02
@LingyuCoder LingyuCoder changed the title refactor(core): intern normal module requests refactor(core): remove unused exports final name metadata May 12, 2026
@JSerFeng JSerFeng merged commit 259b48a into main May 12, 2026
35 checks passed
@JSerFeng JSerFeng deleted the codex/pass-interned-normal-module-requests branch May 12, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants