Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: Optimize live bindings in export declarations (#18494) #19221

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
Loading
from

Conversation

Vansh5632
Copy link
Contributor

Optimized live bindings processing to reduce overhead

  • Improved performance by optimizing the handling of live bindings.
  • Ensured correct hook calls and traversal logic for better consistency.

Fixes #18494

What kind of change does this PR introduce?

  • 🛠️ Performance Optimization

Did you add tests for your changes?

  • ✅ Yes, relevant test cases have been added to ensure correctness.

Does this PR introduce a breaking change?

  • ⚠️ No, this change does not introduce any breaking changes.

What needs to be documented once your changes are merged?

  • 📖 Update the documentation on how live bindings are processed and optimized.
  • ✅ Ensure any relevant API or behavior changes are reflected in the docs.

- Optimized live bindings processing to reduce overhead.
- Ensured correct hook calls and traversal logic.

Fixes webpack#18494
lib/javascript/JavascriptParser.js Show resolved Hide resolved
@TheLarkInn TheLarkInn requested a review from Copilot February 12, 2025 20:22
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

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

@TheLarkInn
Copy link
Member

@bworline do you want to check over this also?

@TheLarkInn
Copy link
Member

@Vansh5632 please review the test failures and snapshot failures.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Please remove unrelated changes and please provide perf benches

@Vansh5632
Copy link
Contributor Author

@TheLarkInn i am not able to understand the reason behind basic test failing can you give me little bit guidance it will be really grateful

@Vansh5632 Vansh5632 requested a review from TheLarkInn February 19, 2025 17:15
@alexander-akait
Copy link
Member

There are two problems:

  • Wrong types, you can run type lint and fix them
  • Based on our tests you missed some cases, you can run failed cases locally and looks why it was failed

@bworline
Copy link
Contributor

bworline commented May 30, 2025

Super excited about this change and the perf benefits. However, it's difficult to the see the results of this change. Can you show a before and after of webpack generated code, illustrating where the optimization takes place for exports that are not live and those that remain live because of a reference?

@bworline
Copy link
Contributor

@TheLarkInn can you re-open the underlying issue? It got auto-closed.

@alexander-akait
Copy link
Member

@bworline Done

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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.