Skip to content
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

Fix performance issue from 14.2.1 #2888

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Fix performance issue from 14.2.1 #2888

merged 1 commit into from
Dec 3, 2024

Conversation

ahnpnl
Copy link
Collaborator

@ahnpnl ahnpnl commented Dec 3, 2024

Summary

Fixes #2886

Test plan

Green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A

@ahnpnl ahnpnl force-pushed the fix/perf-isolated-modules branch 12 times, most recently from 9a80268 to 3fb3428 Compare December 3, 2024 12:45
As reported, the perf issue is caused by the introduction of an extra `Program` instance to fetch to AST transformers next to the hidden `Program` behind `ts.transpileModule`. We should only use one instance of `Program` therefore we have to manually copy the codes of `ts.transpileModule` to use for our case.

Fixes #2886
@ahnpnl ahnpnl force-pushed the fix/perf-isolated-modules branch from 3fb3428 to aae926c Compare December 3, 2024 12:54
@ahnpnl ahnpnl marked this pull request as ready for review December 3, 2024 13:14
@ahnpnl ahnpnl merged commit b19cd6e into main Dec 3, 2024
12 checks passed
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.

[Bug]: Performance regression in 14.2.0 and 14.2.1
1 participant