Skip to content

perf(resolver): derive the link-target anchor once per importer - #14478

Merged
zkochan merged 3 commits into
mainfrom
perf/cache-link-anchors
Sep 2, 2026
Merged

zkochan merged 3 commits into
mainfrom
perf/cache-link-anchors

Conversation

@zkochan

@zkochan zkochan commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Related to #14352. A fresh profile puts the largest remaining resolution cost in the link: re-rendering introduced by #14396's rel-space fast paths: the importer-side anchor — the consuming project's directory expressed as a suffix of the lockfile root — was re-derived (absolute-path validation plus prefix strip) once per dependency edge at all three rendering sites, though both anchors are constant per importer. On the reproduction that's ~87k derivations of a value with 6,833 distinct results.

  • ImporterAnchor derives the suffix once and serves the per-edge renderings. TreeCtx holds one per importer for the walk's canonical-resolution rendering and the pkgIdWithPatchHash fold — two anchors, one per lockfile-dir spelling those sites used, so the cache changes no behavior even where the spellings differ — and the peer pass builds one per importer around its direct-deps loop. A disarmed anchor (dot-carrying, non-absolute, or outside-root inputs) renders nothing, keeping every absolute-space fallback exactly where it was. A debug assertion pins the one equivalence this relies on: a workspace: edge never runs under the per-edge project-dir override, which fires for file: specifiers only — exercised by the whole debug-mode suite.
  • PathNode gives the graph sequencer's interner byte-based path hashing/equality (Path's own Hash/Eq walk component by component), used by the plan ordering and the cycle search.

Measurements

On the issue's reproduction (6,833 projects, 87,630 workspace:* edges; warm non-noop lockfile-only update per its README protocol; M-series Mac):

Metric before after
resolution stage (median of 8, σ ≈ 4 ms) 581 ms 505 ms
whole warm update (median of 8) 1.30 s 1.21 s

The written pnpm-lock.yaml is byte-identical, and all 406 resolver + scheduler tests pass (the anchor-API rewrite included).

Cumulative for #14352: the warm lockfile-only update has gone from ~2.43 s (before #14379) to ~1.21 s, versus the ~1.6 s the issue reports for Yarn 4.18 on the same protocol.

Squash Commit Body

Re-rendering a workspace link: target starts from the consuming
importer's directory expressed as a suffix of the lockfile root - and
that suffix was re-derived (validated, prefix-stripped) once per
dependency edge at all three rendering sites, though both anchors are
constant per importer. ImporterAnchor now derives it once: TreeCtx
holds one per importer for the walk's canonical-resolution rendering
and the pkgIdWithPatchHash fold (with a debug assertion pinning that a
workspace edge never runs under the per-edge project-dir override,
which fires for file: specifiers only), and the peer pass builds one
per importer around its direct-deps loop. A disarmed anchor renders
nothing, keeping every fallback exactly where it was.

The graph sequencer's interner also stops hashing paths component by
component: a PathNode wrapper compares and hashes the underlying
OsStr's bytes, used by the plan ordering and the cycle search.

On the 6,833-project reproduction from pnpm/pnpm#14352 (87,630
workspace edges, warm non-noop lockfile-only update), the resolution
stage drops from ~581 ms to ~505 ms (median of 8, sigma 4 ms),
whole-run wall time from ~1.30 s to ~1.21 s, and the written lockfile
is byte-identical. Related to pnpm/pnpm#14352.

Checklist

  • I checked the referenced issue and verified that none of the PRs
    already linked to it solves it.
  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting. (Rust-only
    internal perf work with no user-visible behavior change; no TypeScript-side
    port is needed.)
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.

Written by an agent (Claude Code, claude-fable-5).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Performance

    • Improved install performance in large workspaces by reusing workspace link-target calculations per project.
    • Improved workspace project ordering and graph handling for paths with differing byte representations.
  • Bug Fixes

    • Improved consistency when resolving workspace links across normalized and non-normalized paths.
    • Preserved correct link-target behavior for root projects, cached resolutions, and platform-specific paths.
    • Improved reliability when resolving workspace dependency cycles.

Re-rendering a workspace link: target starts from the consuming
importer's directory expressed as a suffix of the lockfile root — and
that suffix was re-derived (validated, prefix-stripped) once per
dependency edge at all three rendering sites, though both anchors are
constant per importer. ImporterAnchor now derives it once: TreeCtx
holds one per importer for the walk's canonical-resolution rendering
and the pkgIdWithPatchHash fold (with a debug assertion pinning that a
workspace edge never runs under the per-edge project-dir override,
which fires for file: specifiers only), and the peer pass builds one
per importer around its direct-deps loop. A disarmed anchor renders
nothing, keeping every fallback exactly where it was.

The graph sequencer's interner also stops hashing paths component by
component: a PathNode wrapper compares and hashes the underlying
OsStr's bytes, used by the plan ordering and the cycle search.

On the 6,833-project reproduction from #14352 (87,630
workspace edges, warm non-noop lockfile-only update), the resolution
stage drops from ~581 ms to ~505 ms (median of 8, sigma 4 ms),
whole-run wall time from ~1.30 s to ~1.21 s, and the written lockfile
is byte-identical. Related to #14352.
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Cache link-target anchors per importer and optimize path hashing

✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Caches workspace link anchors per importer while preserving guarded absolute-path fallbacks.
• Hashes workspace graph nodes by raw path bytes to reduce sequencing overhead.
• Updates path safety tests and publishes a patch changeset.
Diagram

graph TD
  I["Importer context"] --> A["ImporterAnchor"] --> T["Tree resolver"] --> L["Link dep paths"]
  A --> P["Peer resolver"] --> L
  W["Workspace paths"] --> N["PathNode bytes"] --> G["Graph sequencer"]
Loading
High-Level Assessment

The importer-scoped cache is the appropriate granularity because both anchor inputs remain constant throughout each importer walk. It removes repeated validation and prefix stripping without introducing global cache synchronization or changing unsafe-input fallbacks. Keeping separate anchors for the normalized and verbatim lockfile-directory spellings preserves existing behavior, while PathNode provides a narrowly scoped optimization for callers already using canonical project paths.

Files changed (15) +213 / -85

Enhancement (11) +166 / -67
pipelines.rsUse byte-hashed path nodes for project ordering +7/-4

Use byte-hashed path nodes for project ordering

• Wraps workspace project and dependency paths in PathNode before graph sequencing, then unwraps ordered nodes back into PathBuf values.

pnpm/crates/cli/src/cli_args/pipelines.rs

workspace_cycles.rsUse PathNode during workspace cycle detection +7/-7

Use PathNode during workspace cycle detection

• Converts borrowed project paths and graph edges to PathNode so cycle discovery uses OsStr-based hashing and equality without cloning paths.

pnpm/crates/package-manager/src/workspace_cycles.rs

link_target.rsIntroduce reusable importer link anchors +60/-42

Introduce reusable importer link anchors

• Adds ImporterAnchor to derive and retain the validated importer suffix once. Its rendering methods preserve fallback behavior for disarmed anchors, absolute targets, dot components, Windows rooted paths, and root escapes.

pnpm/crates/resolving-deps-resolver/src/link_target.rs

manifest.rsReuse TreeCtx anchor for link package IDs +1/-3

Reuse TreeCtx anchor for link package IDs

• Uses the importer-scoped TreeCtx anchor when folding link targets into package IDs, avoiding repeated suffix derivation per dependency edge.

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/manifest.rs

tree_ctx.rsCache link anchors in the dependency tree context +33/-2

Cache link anchors in the dependency tree context

• Stores separate anchors for normalized and verbatim lockfile-directory spellings to preserve rendering behavior. Recomputes the normalized anchor when with_lockfile_dir changes the context root.

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/tree_ctx.rs

walk.rsRender cached workspace resolutions with importer anchors +20/-4

Render cached workspace resolutions with importer anchors

• Passes the cached base anchor into workspace link rendering instead of deriving it per edge. Adds a debug assertion verifying workspace edges cannot use the file-specifier project-directory override.

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk.rs

resolve_peers.rsDerive one link anchor per peer importer +2/-0

Derive one link anchor per peer importer

• Creates an ImporterAnchor before each importer's direct-dependency loop and reuses it for every rendered peer dependency path.

pnpm/crates/resolving-deps-resolver/src/resolve_peers.rs

context.rsAccept cached anchors in peer link rendering +2/-3

Accept cached anchors in peer link rendering

• Changes importer_relative_link_dep_path to consume an existing ImporterAnchor while retaining the original absolute-space fallback inputs.

pnpm/crates/resolving-deps-resolver/src/resolve_peers/context.rs

walker.rsReuse one anchor across direct peer dependencies +7/-0

Reuse one anchor across direct peer dependencies

• Builds an anchor once before the direct-dependency loop, using a disarmed default when project or lockfile directories are unavailable.

pnpm/crates/resolving-deps-resolver/src/resolve_peers/walker.rs

graph_sequencer.rsAdd byte-hashed PathNode graph keys +26/-1

Add byte-hashed PathNode graph keys

• Introduces a borrowed path wrapper whose equality and hashing operate on the underlying OsStr rather than walking path components. This reduces graph interner overhead for canonically keyed workspace projects.

pnpm/crates/workspace-task-scheduler/src/graph_sequencer.rs

lib.rsExport PathNode for graph sequencer callers +1/-1

Export PathNode for graph sequencer callers

• Re-exports PathNode alongside the graph sequencer API for use by CLI and package-manager graph construction.

pnpm/crates/workspace-task-scheduler/src/lib.rs

Tests (3) +42 / -18
tests.rsValidate cached anchor rendering and safety guards +23/-13

Validate cached anchor rendering and safety guards

• Migrates relative-path equivalence tests to ImporterAnchor and adds coverage proving disarmed anchors render nothing. Existing root-importer and Windows path safeguards remain covered.

pnpm/crates/resolving-deps-resolver/src/link_target/tests.rs

shared_workspace_resolution_cache.rsAdapt shared workspace cache tests to importer anchors +9/-4

Adapt shared workspace cache tests to importer anchors

• Constructs an ImporterAnchor when testing importer-specific rendering of shared canonical workspace resolutions.

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk/tests/shared_workspace_resolution_cache.rs

tests.rsUpdate peer link tests for cached anchors +10/-1

Update peer link tests for cached anchors

• Supplies ImporterAnchor instances to self-link and normalized-project-directory regression tests.

pnpm/crates/resolving-deps-resolver/src/resolve_peers/context/tests.rs

Documentation (1) +5 / -0
anchored-links.mdDocument workspace install performance improvements +5/-0

Document workspace install performance improvements

• Adds a patch changeset describing importer-scoped link anchors and byte-based project path hashing for large workspaces.

.changeset/anchored-links.md

@coderabbitai

coderabbitai Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 7dd400d0-9d56-4bb4-a693-e641b5a715c6

📥 Commits

Reviewing files that changed from the base of the PR and between 60101b1 and 60ff04b.

📒 Files selected for processing (1)
  • pnpm/crates/deps-restorer/src/lib.rs

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The resolver now computes importer anchors once and reuses them for link: target rendering. Workspace graph sequencing now uses byte-based PathNode identity. Constructors, cached rendering, peer resolution, and tests use the new anchor API.

Changes

Anchored links and workspace sequencing

Layer / File(s) Summary
Byte-based workspace path nodes
pnpm/crates/workspace-task-scheduler/..., pnpm/crates/cli/src/cli_args/pipelines.rs, pnpm/crates/package-manager/src/workspace_cycles.rs
PathNode compares and hashes path bytes. Workspace ordering and cycle detection wrap graph paths with PathNode.
ImporterAnchor contract and tests
pnpm/crates/resolving-deps-resolver/src/link_target.rs, pnpm/crates/resolving-deps-resolver/src/link_target/tests.rs
ImporterAnchor replaces standalone link-target helpers. It stores the importer-relative suffix and guards relative-path operations. Tests cover clean, disarmed, root, and Windows paths.
Tree context and workspace link rendering
pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/..., .changeset/anchored-links.md
TreeCtx stores normalized and base anchors. Manifest and cached-workspace rendering use the stored anchors. The changeset records the patch release.
Peer link path resolution
pnpm/crates/resolving-deps-resolver/src/resolve_peers/...
Peer resolution constructs anchors and passes them to direct dependency link-path calculation. Related tests use the new argument.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Merge Risk: ⚪ Minimal · up to 60ff0

This localized performance change preserves lockfile output and has reported test coverage and benchmark improvements; no actionable merge-blocking risk remains beyond normal checks and review.

Sequence Diagram(s)

sequenceDiagram
  participant TreeCtx
  participant ImporterAnchor
  participant render_workspace_resolution
  TreeCtx->>ImporterAnchor: construct base_link_anchor
  TreeCtx->>render_workspace_resolution: pass base_link_anchor
  render_workspace_resolution->>ImporterAnchor: target_relative_to_importer(target)
  ImporterAnchor-->>render_workspace_resolution: relative target or None
Loading

Suggested labels: product: pacquet

Suggested reviewers: sharmila-oai

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch perf/cache-link-anchors

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

qodo-code-review Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (4) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Changeset colon misused 📘 Rule violation ✧ Quality
Description
The colon after large workspaces introduces neither a list nor an example. Changeset formatting
permits colons only for those purposes.
Code

.changeset/anchored-links.md[5]

+Sped up installs in large workspaces: the anchor for re-rendering workspace `link:` targets is now derived once per project instead of once per dependency edge, and project ordering hashes paths by their raw bytes [#14352](https://github.com/pnpm/pnpm/issues/14352).
Relevance

●● Moderate

No close colon-specific precedent; nearby changeset wording review was rejected but addressed
broader implementation detail.

PR-#14435

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The colon in Sped up installs in large workspaces: is followed by prose explaining implementation,
not a list or example as required.

Rule 3058313: Changeset text formatting conventions
.changeset/anchored-links.md[5-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset uses a colon as decorative punctuation rather than to introduce a list or example.

## Issue Context
Replace the colon after `large workspaces` with a period and rewrite the following text as a separate sentence, or remove the implementation detail.

## Fix Focus Areas
- .changeset/anchored-links.md[5-5]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

2. Changeset combines two optimizations 📘 Rule violation ⚙ Maintainability
Description
The single changeset sentence combines link-target anchor caching and raw-byte path hashing as two
distinct changes. Each logical change must be stated in a separate sentence.
Code

.changeset/anchored-links.md[5]

+Sped up installs in large workspaces: the anchor for re-rendering workspace `link:` targets is now derived once per project instead of once per dependency edge, and project ordering hashes paths by their raw bytes [#14352](https://github.com/pnpm/pnpm/issues/14352).
Relevance

● Weak

Recent review rejected a single changeset sentence combining multiple workspace performance
implementation changes.

PR-#14435

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Line 5 joins deriving link-target anchors once per project and hashing project-ordering paths by raw
bytes with and, describing two independent implementation changes in one sentence.

Rule 3058304: Avoid compound sentences in individual changeset entries
.changeset/anchored-links.md[5-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset entry combines two separate optimizations in one compound sentence.

## Issue Context
Separate the link-target anchor optimization from the project-ordering path-hash optimization. Keep each sentence focused on one logical change.

## Fix Focus Areas
- .changeset/anchored-links.md[5-5]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. First sentence exposes internals 📘 Rule violation ⚙ Maintainability
Description
The changeset's first sentence describes internal anchor derivation, caching, and raw-byte path
hashing instead of only the affected user-visible install-performance behavior. Rewrite it to state
the definite observable performance outcome, moving implementation details to a later sentence or
omitting them.
Code

.changeset/anchored-links.md[5]

+Sped up installs in large workspaces: the anchor for re-rendering workspace `link:` targets is now derived once per project instead of once per dependency edge, and project ordering hashes paths by their raw bytes [#14352](https://github.com/pnpm/pnpm/issues/14352).
Relevance

● Weak

Recent review rejected nearly identical internal implementation details in a large-workspace
performance changeset.

PR-#14435

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The phrases anchor ... derived once per project and `project ordering hashes paths by their raw
bytes` describe internal data-processing mechanisms, which violates the requirement that the first
changeset sentence contain only observable behavior.

Rule 3058297: Format changeset entry first sentence as user-visible command/setting/behavior change
Rule 3058322: Changeset entries must describe observable behavior changes only
.changeset/anchored-links.md[5-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset's first sentence includes internal anchor derivation, caching, and raw-byte path-hashing mechanisms instead of limiting itself to the observable install-performance change.

## Issue Context
Describe the definite user-visible effect first, such as reduced install time in large workspaces, preferably using the measured performance result from the PR description. Move the anchor derivation, caching, and raw-byte path-hashing details to a separate sentence, retain them only in the commit or PR description, or omit them from the release notes.

## Fix Focus Areas
- .changeset/anchored-links.md[5-5]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


4. pnpm changeset entry missing 📘 Rule violation § Compliance
Description
The changeset declares only pacquet and omits the required pnpm package entry. This prevents the
pnpm release tooling from recording the patch correctly.
Code

.changeset/anchored-links.md[2]

+"pacquet": patch
Relevance

● Weak

Recent same-rule reviews rejected adding pnpm to pacquet-only changesets.

PR-#14465
PR-#14466

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changeset front matter lists only "pacquet": patch, while the rule explicitly requires an
entry for pnpm.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/anchored-links.md[1-3]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset front matter omits the required `pnpm` package entry.

## Issue Context
PR Compliance ID 713436 requires every modified changeset to explicitly declare `pnpm` with an appropriate bump type. This performance-only change should use `patch`.

## Fix Focus Areas
- .changeset/anchored-links.md[1-3]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Context sources
✅ Compliance rules (platform): 33 rules
Review mode: ⚖️ Balanced

Grey Divider

Tip of the day
💡 Did you know, you can turn on the rule miner and Qodo learns your standards from review history

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit 60ff04b ⚖️ Balanced

Results up to commit 60101b1 ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (4) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. Changeset colon misused 📘 Rule violation ✧ Quality
Description
The colon after large workspaces introduces neither a list nor an example. Changeset formatting
permits colons only for those purposes.
Code

.changeset/anchored-links.md[5]

+Sped up installs in large workspaces: the anchor for re-rendering workspace `link:` targets is now derived once per project instead of once per dependency edge, and project ordering hashes paths by their raw bytes [#14352](https://github.com/pnpm/pnpm/issues/14352).
Relevance

●● Moderate

No close colon-specific precedent; nearby changeset wording review was rejected but addressed
broader implementation detail.

PR-#14435

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The colon in Sped up installs in large workspaces: is followed by prose explaining implementation,
not a list or example as required.

Rule 3058313: Changeset text formatting conventions
.changeset/anchored-links.md[5-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset uses a colon as decorative punctuation rather than to introduce a list or example.

## Issue Context
Replace the colon after `large workspaces` with a period and rewrite the following text as a separate sentence, or remove the implementation detail.

## Fix Focus Areas
- .changeset/anchored-links.md[5-5]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational
2. pnpm changeset entry missing 📘 Rule violation § Compliance
Description
The changeset declares only pacquet and omits the required pnpm package entry. This prevents the
pnpm release tooling from recording the patch correctly.
Code

.changeset/anchored-links.md[2]

+"pacquet": patch
Relevance

● Weak

Recent same-rule reviews rejected adding pnpm to pacquet-only changesets.

PR-#14465
PR-#14466

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changeset front matter lists only "pacquet": patch, while the rule explicitly requires an
entry for pnpm.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/anchored-links.md[1-3]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset front matter omits the required `pnpm` package entry.

## Issue Context
PR Compliance ID 713436 requires every modified changeset to explicitly declare `pnpm` with an appropriate bump type. This performance-only change should use `patch`.

## Fix Focus Areas
- .changeset/anchored-links.md[1-3]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. First sentence exposes internals 📘 Rule violation ⚙ Maintainability
Description
The changeset's first sentence describes internal anchor derivation, caching, and raw-byte path
hashing instead of only the affected user-visible install-performance behavior. Rewrite it to state
the definite observable performance outcome, moving implementation details to a later sentence or
omitting them.
Code

.changeset/anchored-links.md[5]

+Sped up installs in large workspaces: the anchor for re-rendering workspace `link:` targets is now derived once per project instead of once per dependency edge, and project ordering hashes paths by their raw bytes [#14352](https://github.com/pnpm/pnpm/issues/14352).
Relevance

● Weak

Recent review rejected nearly identical internal implementation details in a large-workspace
performance changeset.

PR-#14435

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The phrases anchor ... derived once per project and `project ordering hashes paths by their raw
bytes` describe internal data-processing mechanisms, which violates the requirement that the first
changeset sentence contain only observable behavior.

Rule 3058297: Format changeset entry first sentence as user-visible command/setting/behavior change
Rule 3058322: Changeset entries must describe observable behavior changes only
.changeset/anchored-links.md[5-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset's first sentence includes internal anchor derivation, caching, and raw-byte path-hashing mechanisms instead of limiting itself to the observable install-performance change.

## Issue Context
Describe the definite user-visible effect first, such as reduced install time in large workspaces, preferably using the measured performance result from the PR description. Move the anchor derivation, caching, and raw-byte path-hashing details to a separate sentence, retain them only in the commit or PR description, or omit them from the release notes.

## Fix Focus Areas
- .changeset/anchored-links.md[5-5]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


4. Changeset combines two optimizations 📘 Rule violation ⚙ Maintainability
Description
The single changeset sentence combines link-target anchor caching and raw-byte path hashing as two
distinct changes. Each logical change must be stated in a separate sentence.
Code

.changeset/anchored-links.md[5]

+Sped up installs in large workspaces: the anchor for re-rendering workspace `link:` targets is now derived once per project instead of once per dependency edge, and project ordering hashes paths by their raw bytes [#14352](https://github.com/pnpm/pnpm/issues/14352).
Relevance

● Weak

Recent review rejected a single changeset sentence combining multiple workspace performance
implementation changes.

PR-#14435

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Line 5 joins deriving link-target anchors once per project and hashing project-ordering paths by raw
bytes with and, describing two independent implementation changes in one sentence.

Rule 3058304: Avoid compound sentences in individual changeset entries
.changeset/anchored-links.md[5-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset entry combines two separate optimizations in one compound sentence.

## Issue Context
Separate the link-target anchor optimization from the project-ordering path-hash optimization. Keep each sentence focused on one logical change.

## Fix Focus Areas
- .changeset/anchored-links.md[5-5]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@greptile-apps

greptile-apps Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (2): Last reviewed commit: "fix(deps-restorer): re-export PathNode a..." | Re-trigger Greptile

greptile-apps[bot]
greptile-apps Bot previously approved these changes Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.08     16.7±1.69ms    22.4 MB/sec    1.00     15.4±1.69ms    24.2 MB/sec
packument/parse                                  1.07     47.1±0.98µs  1407.1 MB/sec    1.00     44.2±0.40µs  1500.0 MB/sec
tarball/download_dependency                      1.63      7.3±1.76ms   596.9 KB/sec    1.00      4.4±0.18ms   974.8 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.24   297.7±22.07ms 53.7 KElem/sec    1.00   239.2±36.21ms 66.9 KElem/sec
workspace_resolution/hoist_heavy                 1.00   362.3±23.56ms        ? ?/sec    1.10   398.6±38.12ms        ? ?/sec
workspace_sort/chained_projects                  1.00     17.0±2.99ms        ? ?/sec    1.05     17.9±2.69ms        ? ?/sec

The consuming crates import it through this re-export; it was edited
but left out of the previous commit.
@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Sep 2, 2026
@greptile-apps
greptile-apps Bot dismissed their stale review September 2, 2026 17:14

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 60ff04b

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.90%. Comparing base (6bae22c) to head (60ff04b).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #14478    +/-   ##
========================================
  Coverage   88.90%   88.90%            
========================================
  Files         703      703            
  Lines      126022   126150   +128     
========================================
+ Hits       112037   112157   +120     
- Misses      13985    13993     +8     

☔ View full report in Codecov by Harness.
📢 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.

@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 60ff04ba8397

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time).

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.482 ± 0.114 2.360 2.684 1.66 ± 0.16
pacquet@main 2.541 ± 0.129 2.386 2.814 1.70 ± 0.17
pnpr@HEAD 1.494 ± 0.125 1.367 1.728 1.00
pnpr@main 1.523 ± 0.102 1.389 1.711 1.02 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.4820136209599997,
      "stddev": 0.1136839410028818,
      "median": 2.43392539266,
      "user": 1.6399706999999997,
      "system": 1.70837574,
      "min": 2.36011376516,
      "max": 2.68446155916
    },
    {
      "command": "pacquet@main",
      "mean": 2.54095653396,
      "stddev": 0.1290555924306562,
      "median": 2.5163900771599996,
      "user": 1.8538394,
      "system": 1.8436834400000002,
      "min": 2.38582520916,
      "max": 2.8137013021599997
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4941609634600002,
      "stddev": 0.12521988682611726,
      "median": 1.4721870091600002,
      "user": 1.5791459999999997,
      "system": 1.73637314,
      "min": 1.36662724416,
      "max": 1.7284537391600001
    },
    {
      "command": "pnpr@main",
      "mean": 1.52295146806,
      "stddev": 0.10207288266505125,
      "median": 1.48643894416,
      "user": 1.6003470999999998,
      "system": 1.63570924,
      "min": 1.3891303591600002,
      "max": 1.7107235301600001
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 293.8 ± 11.4 280.0 319.2 1.08 ± 0.06
pacquet@main 271.2 ± 9.8 256.5 292.9 1.00
pnpr@HEAD 313.0 ± 21.7 293.1 354.0 1.15 ± 0.09
pnpr@main 316.2 ± 14.9 293.8 350.1 1.17 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.29380933740000004,
      "stddev": 0.011381411605310676,
      "median": 0.2912456465,
      "user": 0.2957661399999999,
      "system": 0.6565698400000001,
      "min": 0.2800186075,
      "max": 0.3191724695
    },
    {
      "command": "pacquet@main",
      "mean": 0.27118336830000006,
      "stddev": 0.009798565371917981,
      "median": 0.2689804845,
      "user": 0.2830184399999999,
      "system": 0.61143494,
      "min": 0.2564535725,
      "max": 0.2928669035
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.31302144069999993,
      "stddev": 0.021668990044019575,
      "median": 0.30486487650000005,
      "user": 0.29895564,
      "system": 0.6560461400000002,
      "min": 0.2930729005,
      "max": 0.3539921145
    },
    {
      "command": "pnpr@main",
      "mean": 0.3162097669,
      "stddev": 0.014854855099620543,
      "median": 0.3139748815,
      "user": 0.28836343999999997,
      "system": 0.66729814,
      "min": 0.2938443505,
      "max": 0.3500710145
    }
  ]
}

Scenario: Isolated linker: repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 8.7 ± 1.6 6.7 16.3 1.00 ± 0.22
pacquet@main 8.9 ± 2.2 6.3 16.8 1.02 ± 0.29
pnpr@HEAD 9.1 ± 0.8 7.6 12.2 1.04 ± 0.17
pnpr@main 8.7 ± 1.2 6.3 12.9 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.008727619448316836,
      "stddev": 0.0015589556222753397,
      "median": 0.00847958528,
      "user": 0.005764753465346535,
      "system": 0.0035479224752475226,
      "min": 0.00670086328,
      "max": 0.016254624279999998
    },
    {
      "command": "pacquet@main",
      "mean": 0.008895531979300687,
      "stddev": 0.0021868781272969032,
      "median": 0.008045444280000001,
      "user": 0.0057098167832167835,
      "system": 0.003765289440559442,
      "min": 0.00634266928,
      "max": 0.01677530328
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.00905586081719009,
      "stddev": 0.0008445066933618783,
      "median": 0.00892459628,
      "user": 0.005610043801652894,
      "system": 0.004093043719008263,
      "min": 0.00755113028,
      "max": 0.01219592828
    },
    {
      "command": "pnpr@main",
      "mean": 0.008697248526710525,
      "stddev": 0.0011643831638434607,
      "median": 0.008611773780000002,
      "user": 0.005449524342105264,
      "system": 0.0038854734868421057,
      "min": 0.00626776928,
      "max": 0.01285708028
    }
  ]
}

Scenario: Isolated linker: repeat install, cold cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 9.2 ± 1.6 6.6 16.1 1.35 ± 0.27
pacquet@main 7.6 ± 1.4 5.8 17.6 1.12 ± 0.23
pnpr@HEAD 7.4 ± 1.3 5.9 12.5 1.08 ± 0.22
pnpr@main 6.8 ± 0.7 5.6 10.1 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.00918167180307692,
      "stddev": 0.0015968416132435654,
      "median": 0.008755529880000001,
      "user": 0.005362117692307693,
      "system": 0.004437457499999997,
      "min": 0.00659048688,
      "max": 0.01613160488
    },
    {
      "command": "pacquet@main",
      "mean": 0.007582577414296026,
      "stddev": 0.0014053719024038694,
      "median": 0.007212855880000001,
      "user": 0.004636783826714801,
      "system": 0.0034576364620938628,
      "min": 0.0058312408800000005,
      "max": 0.01756433688
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.007359422633926705,
      "stddev": 0.0013107923529937296,
      "median": 0.00695767688,
      "user": 0.004612575078534031,
      "system": 0.0032671572774869103,
      "min": 0.00586475288,
      "max": 0.012498397880000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.006790754194641745,
      "stddev": 0.000656218902640725,
      "median": 0.006661800880000001,
      "user": 0.004359502180685358,
      "system": 0.002899720436137072,
      "min": 0.00558367488,
      "max": 0.01013869388
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.814 ± 0.050 2.710 2.860 1.85 ± 0.14
pacquet@main 2.738 ± 0.087 2.652 2.904 1.80 ± 0.14
pnpr@HEAD 1.518 ± 0.112 1.378 1.672 1.00
pnpr@main 1.584 ± 0.085 1.467 1.743 1.04 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.81416146502,
      "stddev": 0.05032001058327084,
      "median": 2.83514149052,
      "user": 1.9480978400000002,
      "system": 1.53435834,
      "min": 2.70959814952,
      "max": 2.85997912452
    },
    {
      "command": "pacquet@main",
      "mean": 2.7380527566200006,
      "stddev": 0.08713062600628774,
      "median": 2.7011972595200002,
      "user": 1.7408154399999998,
      "system": 1.38849824,
      "min": 2.65220392652,
      "max": 2.90385431352
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5178087876200002,
      "stddev": 0.1118309716565469,
      "median": 1.49569343452,
      "user": 1.13738594,
      "system": 1.2671861399999997,
      "min": 1.37831646052,
      "max": 1.6715879485199998
    },
    {
      "command": "pnpr@main",
      "mean": 1.58438299002,
      "stddev": 0.08501230861759693,
      "median": 1.58530846452,
      "user": 1.33477414,
      "system": 1.48851924,
      "min": 1.4674589645199998,
      "max": 1.74349700352
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 404.3 ± 33.9 372.1 468.1 1.13 ± 0.13
pacquet@main 448.9 ± 72.2 368.2 622.3 1.26 ± 0.22
pnpr@HEAD 357.6 ± 26.0 315.4 398.8 1.00
pnpr@main 430.8 ± 59.1 352.7 503.2 1.20 ± 0.19
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.40431228782,
      "stddev": 0.033895817821853386,
      "median": 0.39242308892,
      "user": 0.46900297999999996,
      "system": 0.70770422,
      "min": 0.37208725292000006,
      "max": 0.46809859692000005
    },
    {
      "command": "pacquet@main",
      "mean": 0.4489488228200001,
      "stddev": 0.0722286217627331,
      "median": 0.45264682892,
      "user": 0.5477660799999999,
      "system": 0.72206492,
      "min": 0.36824221492000003,
      "max": 0.62233806192
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.35755668032,
      "stddev": 0.026046428152397178,
      "median": 0.35720924292,
      "user": 0.27698517999999994,
      "system": 0.62767002,
      "min": 0.31538274992000004,
      "max": 0.39879347192000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.43075888312000005,
      "stddev": 0.059142013276915366,
      "median": 0.44425820192000004,
      "user": 0.32370748000000005,
      "system": 0.69289322,
      "min": 0.35270147692000003,
      "max": 0.50318886992
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.336 ± 0.147 2.156 2.554 7.66 ± 0.63
pacquet@main 2.245 ± 0.397 1.863 2.956 7.36 ± 1.36
pnpr@HEAD 0.422 ± 0.073 0.318 0.583 1.38 ± 0.25
pnpr@main 0.305 ± 0.016 0.290 0.346 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.3356875590400006,
      "stddev": 0.14695004656076555,
      "median": 2.3238461367400003,
      "user": 1.3057410399999998,
      "system": 1.0450186399999999,
      "min": 2.15583724324,
      "max": 2.5539261802400004
    },
    {
      "command": "pacquet@main",
      "mean": 2.2451264795400006,
      "stddev": 0.3965146707762084,
      "median": 2.0930145122400003,
      "user": 1.14081944,
      "system": 0.9893772399999998,
      "min": 1.86311411624,
      "max": 2.95643981224
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.42158861404000003,
      "stddev": 0.07290135354792089,
      "median": 0.41214067724000003,
      "user": 0.3359491399999999,
      "system": 0.68368264,
      "min": 0.31763814124,
      "max": 0.58345507324
    },
    {
      "command": "pnpr@main",
      "mean": 0.30497669914,
      "stddev": 0.016358997836873813,
      "median": 0.30175055823999997,
      "user": 0.20825354000000001,
      "system": 0.56298804,
      "min": 0.28987281323999997,
      "max": 0.34637530624
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 263.7 ± 23.7 241.5 316.7 2.48 ± 0.24
pacquet@main 265.2 ± 13.0 245.7 286.4 2.49 ± 0.15
pnpr@HEAD 106.5 ± 4.0 96.6 115.5 1.00
pnpr@main 107.8 ± 7.2 96.4 127.6 1.01 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.26373224914000004,
      "stddev": 0.023704575298010424,
      "median": 0.25144110664,
      "user": 0.24203552333333336,
      "system": 0.06812681999999999,
      "min": 0.24145970264,
      "max": 0.31668652664
    },
    {
      "command": "pacquet@main",
      "mean": 0.26518072918545454,
      "stddev": 0.013019315246049117,
      "median": 0.26496041364,
      "user": 0.2394623490909091,
      "system": 0.06919495636363636,
      "min": 0.24570936364,
      "max": 0.28638452464
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.10649890388000002,
      "stddev": 0.004030838325571012,
      "median": 0.10552871664,
      "user": 0.04155832,
      "system": 0.0158634,
      "min": 0.09655225064,
      "max": 0.11546186064000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.10782652626068966,
      "stddev": 0.007228179115003006,
      "median": 0.10771979164,
      "user": 0.041320612413793104,
      "system": 0.018371388965517238,
      "min": 0.09642052264,
      "max": 0.12756451664
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 706.7 ± 69.6 616.0 817.1 1.00
pacquet@main 712.0 ± 112.4 479.3 870.2 1.01 ± 0.19
pnpm@HEAD 3471.2 ± 425.3 3045.2 4290.7 4.91 ± 0.77
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.7066737156088888,
      "stddev": 0.06960214614375868,
      "median": 0.71028550872,
      "user": 0.7282113111111111,
      "system": 0.1647756622222222,
      "min": 0.61604077272,
      "max": 0.81706316072
    },
    {
      "command": "pacquet@main",
      "mean": 0.7119634863866666,
      "stddev": 0.11237012858183114,
      "median": 0.7388507587200001,
      "user": 0.7376751999999999,
      "system": 0.16491899555555556,
      "min": 0.47928171172000006,
      "max": 0.87022399772
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.4712022934977775,
      "stddev": 0.42527663118542686,
      "median": 3.2994250437200003,
      "user": 5.340032088888888,
      "system": 0.28976688444444443,
      "min": 3.0451682517200003,
      "max": 4.29065780872
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.582 ± 0.136 4.428 4.919 1.22 ± 0.12
pacquet@main 4.824 ± 0.168 4.499 5.004 1.28 ± 0.13
pnpr@HEAD 3.771 ± 0.363 3.490 4.615 1.00
pnpr@main 4.053 ± 0.764 3.639 6.171 1.07 ± 0.23
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.58228948654,
      "stddev": 0.13590474254016824,
      "median": 4.56720472324,
      "user": 2.08171636,
      "system": 1.95113436,
      "min": 4.427797367739999,
      "max": 4.91859790674
    },
    {
      "command": "pacquet@main",
      "mean": 4.824379907139999,
      "stddev": 0.16784594431641015,
      "median": 4.86840872824,
      "user": 2.3173416599999994,
      "system": 2.1666564599999996,
      "min": 4.49888312374,
      "max": 5.00351916274
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.77138086644,
      "stddev": 0.3627782472331101,
      "median": 3.59396622024,
      "user": 2.0588505599999998,
      "system": 2.09789916,
      "min": 3.4897627727400002,
      "max": 4.61497259174
    },
    {
      "command": "pnpr@main",
      "mean": 4.05296414654,
      "stddev": 0.7637395735545658,
      "median": 3.8097408767400003,
      "user": 2.3658671599999996,
      "system": 2.35874956,
      "min": 3.63871890674,
      "max": 6.17119413674
    }
  ]
}

Scenario: GVS linker: fresh restore, hot cache + hot store

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store — the layout pnpm 12 installs into by default. Comparable to that scenario head-to-head.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 201.8 ± 16.1 184.5 235.7 1.08 ± 0.11
pacquet@main 187.5 ± 10.8 165.9 206.6 1.00
pnpr@HEAD 215.6 ± 14.8 198.4 253.6 1.15 ± 0.10
pnpr@main 219.5 ± 15.7 196.8 242.5 1.17 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.20177326128307696,
      "stddev": 0.01606538942424954,
      "median": 0.19525328936000003,
      "user": 0.2744386815384615,
      "system": 0.23999796923076921,
      "min": 0.18449489136000002,
      "max": 0.23567216136000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.1875347608215385,
      "stddev": 0.010803622210116411,
      "median": 0.18365603536000003,
      "user": 0.2570375276923077,
      "system": 0.22046258461538465,
      "min": 0.16591932936,
      "max": 0.20660783836000002
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.2156233365138462,
      "stddev": 0.014788052707543449,
      "median": 0.21263089236000002,
      "user": 0.27889037384615384,
      "system": 0.21583927692307694,
      "min": 0.19842754136000001,
      "max": 0.25360409536
    },
    {
      "command": "pnpr@main",
      "mean": 0.21954548069333338,
      "stddev": 0.015675436405264455,
      "median": 0.21959072986,
      "user": 0.2768863033333333,
      "system": 0.22957536666666667,
      "min": 0.19678507736,
      "max": 0.24248534036000002
    }
  ]
}

@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/14478
Testbedpacquet

🚨 2 Alerts

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
isolated-linker.fresh-restore.hot-cache.hot-storeLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
280.02 ms
(+21.12%)Baseline: 231.20 ms
277.44 ms
(100.93%)

isolated-linker.peer-heavy-resolve.hot-cache.offlineLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
616.04 ms
(+21.22%)Baseline: 508.18 ms
609.82 ms
(101.02%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
184.49 ms
(+11.85%)Baseline: 164.96 ms
197.95 ms
(93.20%)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,709.60 ms
(-2.11%)Baseline: 2,767.90 ms
3,321.48 ms
(81.58%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
2,155.84 ms
(+12.54%)Baseline: 1,915.53 ms
2,298.64 ms
(93.79%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
372.09 ms
(-6.42%)Baseline: 397.61 ms
477.13 ms
(77.98%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
241.46 ms
(+3.81%)Baseline: 232.61 ms
279.13 ms
(86.51%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,360.11 ms
(-4.21%)Baseline: 2,463.71 ms
2,956.46 ms
(79.83%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,427.80 ms
(-0.99%)Baseline: 4,472.18 ms
5,366.62 ms
(82.51%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
🚨 view alert (🔔)
280.02 ms
(+21.12%)Baseline: 231.20 ms
277.44 ms
(100.93%)

isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
🚨 view alert (🔔)
616.04 ms
(+21.22%)Baseline: 508.18 ms
609.82 ms
(101.02%)

isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
🚷 view threshold
6.59 ms
(-10.21%)Baseline: 7.34 ms
8.81 ms
(74.83%)
isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
🚷 view threshold
6.70 ms
(-4.02%)Baseline: 6.98 ms
8.38 ms
(79.98%)
🐰 View full continuous benchmarking report in Bencher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants