Skip to content

[rush-resolver-cache] Cache nested package info#5321

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

[rush-resolver-cache] Cache nested package info#5321
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:resolver-cache-cache

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Improves the performance of @rushstack/rush-resolver-cache-plugin by caching information about nested package.json files in packages across installs based on package integrity hashes.

Details

Persists an additional file into common/temp that stores the results of the scan for each package integrity hash.

How it was tested

Local runs on a repository using this plugin. Reduced time spent in the rush-resolver-cache plugin from 2647ms to 443ms (most of which is loading the shrinkwrap file).

This could be further reduced if the afterInstall hook was passed the shrinkwrap file used for installation, skipped if no install occurred, or at least passed an indicator if an install occurred.

Impacted documentation

None.

@dmichon-msft dmichon-msft merged commit 59883ef into microsoft:main Aug 26, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Aug 26, 2025
@dmichon-msft dmichon-msft deleted the resolver-cache-cache branch August 26, 2025 20:00
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