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/codegen): Reduce allocation using compact_str #10008

Merged
merged 9 commits into from
Feb 9, 2025

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Feb 6, 2025

Description:

Previously, we allocated if there's an escape character. With this PR, we allocate if there's an escape character and it's long enough.

@kdy1 kdy1 added this to the Planned milestone Feb 6, 2025
@kdy1 kdy1 self-assigned this Feb 6, 2025
@kdy1 kdy1 requested review from a team as code owners February 6, 2025 22:16
Copy link

changeset-bot bot commented Feb 6, 2025

🦋 Changeset detected

Latest commit: f32a683

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

kodiakhq[bot]
kodiakhq bot previously approved these changes Feb 6, 2025
Copy link

codspeed-hq bot commented Feb 7, 2025

CodSpeed Performance Report

Merging #10008 will improve performances by 5.9%

Comparing kdy1:cg-compact (f32a683) with main (f9f4cac)

Summary

⚡ 2 improvements
✅ 194 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
es/minifier/libs/moment 84.9 ms 80.2 ms +5.9%
es/minifier/libs/vue 191 ms 183.4 ms +4.15%

@kdy1 kdy1 merged commit 7d7319f into swc-project:main Feb 9, 2025
172 checks passed
@kdy1 kdy1 deleted the cg-compact branch February 9, 2025 16:55
@kdy1 kdy1 modified the milestones: Planned, v1.10.17 Feb 18, 2025
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