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

perf(es/minifier): Improve arrow function inlining cost analysis #10093

Open
wants to merge 2 commits into
base: kdy1/minifier-cost-fix
Choose a base branch
from

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Feb 25, 2025

Description:

This PR fixes the cost analysis of arrow functions by making it use Option<u8> instead of bool.

Copy link

changeset-bot bot commented Feb 25, 2025

⚠️ No Changeset found

Latest commit: 11e9e5c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

Copy link
Member Author

kdy1 commented Feb 25, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kdy1 kdy1 self-assigned this Feb 25, 2025
@kdy1 kdy1 force-pushed the kdy1/minifier-cost-fix branch from 4ceb761 to b6881ce Compare February 25, 2025 07:34
@kdy1 kdy1 force-pushed the kdy1/minifier-consider-cost branch from f5e2d40 to 80298d5 Compare February 25, 2025 07:34
@kdy1 kdy1 changed the title inline cost perf(es/minifier): Improve arrow function inlining cost analysis Feb 25, 2025
@kdy1 kdy1 marked this pull request as ready for review February 25, 2025 07:37
@kdy1 kdy1 requested a review from a team as a code owner February 25, 2025 07:37
@kdy1 kdy1 added this to the Planned milestone Feb 25, 2025
@kdy1 kdy1 force-pushed the kdy1/minifier-cost-fix branch from b6881ce to 32e7dd9 Compare February 25, 2025 07:38
@kdy1 kdy1 force-pushed the kdy1/minifier-consider-cost branch 3 times, most recently from 847a04f to 9d77a6b Compare February 25, 2025 07:44
@kdy1 kdy1 force-pushed the kdy1/minifier-cost-fix branch from 2c63872 to 9aded2c Compare February 25, 2025 08:01
@kdy1 kdy1 requested a review from a team as a code owner February 25, 2025 08:01
@kdy1 kdy1 force-pushed the kdy1/minifier-consider-cost branch from 9d77a6b to 6d70e81 Compare February 25, 2025 08:02
@kdy1 kdy1 force-pushed the kdy1/minifier-cost-fix branch 2 times, most recently from 5932a32 to b115686 Compare February 25, 2025 08:37
@kdy1 kdy1 force-pushed the kdy1/minifier-consider-cost branch from 6d70e81 to 11e9e5c Compare February 25, 2025 08:37
Copy link

codspeed-hq bot commented Feb 25, 2025

CodSpeed Performance Report

Merging #10093 will degrade performances by 8.78%

Comparing kdy1/minifier-consider-cost (9d77a6b) with main (c345b20)

Summary

⚡ 2 improvements
❌ 6 regressions
✅ 183 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
es/full/minify/libraries/jquery 179.5 ms 173 ms +3.74%
es/full/minify/libraries/lodash 184.3 ms 190.5 ms -3.26%
es/full/minify/libraries/moment 104.8 ms 111 ms -5.64%
es/full/minify/libraries/typescript 5.3 s 5.5 s -3.09%
es/minifier/libs/jquery 131.8 ms 138.5 ms -4.84%
es/minifier/libs/lodash 158.8 ms 153.8 ms +3.27%
es/minifier/libs/moment 82.7 ms 90.6 ms -8.78%
es/minifier/libs/vue 189.1 ms 198.1 ms -4.55%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant