Skip to content

perf: cache stripJsonComments + JSON.parse result in readJson via WeakMap#524

Merged
alexander-akait merged 1 commit intomainfrom
perf/tsconfig-paths
Apr 15, 2026
Merged

perf: cache stripJsonComments + JSON.parse result in readJson via WeakMap#524
alexander-akait merged 1 commit intomainfrom
perf/tsconfig-paths

Conversation

@xiaoxiaojx
Copy link
Copy Markdown
Member

@xiaoxiaojx xiaoxiaojx commented Apr 15, 2026

Summary
perf

What kind of change does this PR introduce?
perf

Did you add tests for your changes?
Existing

Does this PR introduce a breaking change?
No

If relevant, what needs to be documented once your changes are merged or what have you already documented?
Nothing

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 15, 2026

🦋 Changeset detected

Latest commit: 6326abc

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

This PR includes changesets to release 1 package
Name Type
enhanced-resolve Patch

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.75%. Comparing base (0bb2e70) to head (6326abc).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #524      +/-   ##
==========================================
+ Coverage   92.68%   96.75%   +4.07%     
==========================================
  Files          50       50              
  Lines        2555     2589      +34     
  Branches      779      788       +9     
==========================================
+ Hits         2368     2505     +137     
+ Misses        157       69      -88     
+ Partials       30       15      -15     
Flag Coverage Δ
integration 96.75% <100.00%> (+4.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 15, 2026

Merging this PR will improve performance by 27.72%

⚡ 2 improved benchmarks
✅ 41 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
tsconfig-extends: 3-level extends chain (warm) 3.6 ms 2.8 ms +27.72%
tsconfig-paths: 5 path prefixes (warm) 3.8 ms 3.3 ms +14.94%

Comparing perf/tsconfig-paths (6326abc) with main (6cc3073)

Open in CodSpeed

@alexander-akait alexander-akait merged commit b5259a0 into main Apr 15, 2026
34 checks passed
@alexander-akait alexander-akait deleted the perf/tsconfig-paths branch April 15, 2026 17:18
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.

2 participants