Skip to content

[rush-resolver-cache] Improve performance of scan for nested package.json files#5311

Merged
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:tune-resolver-cache
Aug 20, 2025
Merged

[rush-resolver-cache] Improve performance of scan for nested package.json files#5311
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:tune-resolver-cache

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Improves performance @rushstack/rush-resolver-cache-plugin when scanning for nested package.json files in packages.

Details

Skips the JSON parse and instead manually scans for the token /package.json":, which marks the end of a file name key for a nested package.json file.

How it was tested

Before:
image

After:
image

Manually verified that nested package.json entries were still found using some projects that were known to contain them.

Impacted documentation

None

Improves performance of scanning for nested package.json files in packages.
@dmichon-msft dmichon-msft merged commit 1422217 into microsoft:main Aug 20, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Aug 20, 2025
@dmichon-msft dmichon-msft deleted the tune-resolver-cache branch August 20, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants