Skip to content
New issue

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

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

Already on GitHub? # to your account

perf(es/minifier): Skip complex inline operations if possible #9972

Merged
merged 4 commits into from
Jan 29, 2025

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Jan 29, 2025

Description:

We don't actually store those variables for inlining in the previous code. This PR fixes it by locating the self.vars.inline_with_multi_replacer(init); calls very above the storing code.

@kdy1 kdy1 added this to the Planned milestone Jan 29, 2025
@kdy1 kdy1 self-assigned this Jan 29, 2025
@kdy1 kdy1 requested a review from a team as a code owner January 29, 2025 02:36
kodiakhq[bot]
kodiakhq bot previously approved these changes Jan 29, 2025
Copy link

changeset-bot bot commented Jan 29, 2025

🦋 Changeset detected

Latest commit: cedc356

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kdy1 kdy1 enabled auto-merge (squash) January 29, 2025 02:36
@kdy1 kdy1 requested a review from a team as a code owner January 29, 2025 02:37
kodiakhq[bot]
kodiakhq bot previously approved these changes Jan 29, 2025
Copy link

codspeed-hq bot commented Jan 29, 2025

CodSpeed Performance Report

Merging #9972 will improve performances by 4.63%

Comparing kdy1:time-complexity (cedc356) with main (37616c3)

Summary

⚡ 2 improvements
✅ 194 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
es/full/minify/libraries/lodash 251.4 ms 240.3 ms +4.63%
es/minifier/libs/lodash 212.6 ms 203.8 ms +4.32%

@kdy1 kdy1 disabled auto-merge January 29, 2025 12:24
@kdy1 kdy1 merged commit 772cc30 into swc-project:main Jan 29, 2025
16 checks passed
@kdy1 kdy1 deleted the time-complexity branch January 29, 2025 12:24
@kdy1 kdy1 modified the milestones: Planned, v1.10.12 Jan 29, 2025
@swc-project swc-project locked as resolved and limited conversation to collaborators Mar 1, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant