Skip to content

perf(es/renamer): Optimize prepare_renaming #10456

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

perf(es/renamer): Optimize prepare_renaming #10456

wants to merge 4 commits into from

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented May 12, 2025

Description:

We don't need to merge everything recursively upward. It's append-only, so we can simply store a vector of immutable references.

@kdy1 kdy1 added this to the Planned milestone May 12, 2025
@kdy1 kdy1 self-assigned this May 12, 2025
Copy link

changeset-bot bot commented May 12, 2025

🦋 Changeset detected

Latest commit: a30daf7

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 marked this pull request as ready for review May 12, 2025 21:09
@kdy1 kdy1 requested review from a team as code owners May 12, 2025 21:09
@kdy1 kdy1 enabled auto-merge (squash) May 12, 2025 21:10
Copy link

codspeed-hq bot commented May 12, 2025

CodSpeed Performance Report

Merging #10456 will degrade performances by 47.82%

Comparing kdy1/automap (a30daf7) with main (bc756f8)

Summary

⚡ 2 improvements
❌ 2 regressions
✅ 148 untouched benchmarks

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

Benchmarks breakdown

Benchmark BASE HEAD Change
serialization of serde 2.9 µs 3 µs -2.92%
es/hygiene/typescript 530.8 ms 517 ms +2.67%
es/resolver_with_hygiene/typescript 879.1 ms 1,684.9 ms -47.82%
hygiene/typescript 26.2 s 25.5 s +2.64%

@kdy1 kdy1 disabled auto-merge May 12, 2025 21:21
@kdy1 kdy1 marked this pull request as draft May 12, 2025 22:05
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