Skip to content

perf(plugins): reuse installed manifest realpaths#96710

Merged
vincentkoc merged 1 commit into
mainfrom
maint/perf-installed-manifest-realpaths
Jun 25, 2026
Merged

perf(plugins): reuse installed manifest realpaths#96710
vincentkoc merged 1 commit into
mainfrom
maint/perf-installed-manifest-realpaths

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jun 25, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

resolveInstalledManifestRegistryIndexFingerprint() rebuilds package realpaths while fingerprinting mutable installed plugin indexes. Original PR #94347 caught the hot-path waste, but its branch is stale/conflicting and includes unrelated budget edits.

Fixes #90362.

Why This Change Was Made

This keeps the realpath memo at the installed manifest registry lifecycle boundary, alongside the existing installed package path and metadata process caches. The cache is bounded and cleared through the existing plugin metadata lifecycle clear hook.

Original optimization credited to @sheyanmin in #94347.

User Impact

Installed plugin registry fingerprinting avoids repeated realpath filesystem work across repeated mutable index builds. No user-visible behavior, config, migration, or environment contract changes.

Evidence

  • git diff --check
  • node_modules/.bin/oxfmt --check src/plugins/manifest-registry-installed.ts src/plugins/manifest-registry-installed.test.ts
  • node scripts/run-vitest.mjs src/plugins/manifest-registry-installed.test.ts (17 tests)
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
  • Fresh Testbox-through-Crabbox check:changed, provider blacksmith-testbox, id tbx_01kvyyhpd06bd4hq7trpkcn9fn, Actions run https://github.com/openclaw/openclaw/actions/runs/28157447437
  • Prior narrowed-lane Crabbox proof: Azure run_fc3938c56111, lease cbx_9807702a477b, focused plugin test and check:changed passed

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Jun 25, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review June 25, 2026 08:32
@clawsweeper

clawsweeper Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: perf(plugins): reuse installed manifest realpaths This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc
vincentkoc merged commit 94ae918 into main Jun 25, 2026
161 of 163 checks passed
@vincentkoc
vincentkoc deleted the maint/perf-installed-manifest-realpaths branch June 25, 2026 08:41
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

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

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: optimize manifest-registry-installed lstat hotspot on Windows

2 participants