Skip to content

feat(renderer): add viewDiscoveryCaching setting and optimize hot paths#664

Merged
lmajano merged 1 commit into
developmentfrom
claude/renderer-caching-optimization-4gup08
Jun 19, 2026
Merged

feat(renderer): add viewDiscoveryCaching setting and optimize hot paths#664
lmajano merged 1 commit into
developmentfrom
claude/renderer-caching-optimization-4gup08

Conversation

@lmajano

@lmajano lmajano commented Jun 19, 2026

Copy link
Copy Markdown
Member

Introduces a dedicated viewDiscoveryCaching setting (default true)
independent from viewCaching so developers can disable path-resolution
caching without also disabling view output caching.

Hot path improvements:

  • cachedExpandPath() memoizes expandPath() unconditionally — the
    mapping→absolute-path computation is pure and constant per process
  • locateView() and locateLayout() now cache their results in
    locateViewCache/locateLayoutCache, benefiting direct callers and
    module fallback calls that bypass discoverViewPaths()
  • All expandPath() calls inside locateModuleView/Layout and
    discoverViewPaths() helper detection route through cachedExpandPath()

Adds 7 new test specs covering cache population, always-on expandPathCache
behaviour, and correct no-cache behaviour when viewDiscoveryCaching=false.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01MUinjJLvJod1u9s2e9T6zc

Introduces a dedicated `viewDiscoveryCaching` setting (default true)
independent from `viewCaching` so developers can disable path-resolution
caching without also disabling view output caching.

Hot path improvements:
- `cachedExpandPath()` memoizes expandPath() unconditionally — the
  mapping→absolute-path computation is pure and constant per process
- `locateView()` and `locateLayout()` now cache their results in
  `locateViewCache`/`locateLayoutCache`, benefiting direct callers and
  module fallback calls that bypass discoverViewPaths()
- All expandPath() calls inside locateModuleView/Layout and
  discoverViewPaths() helper detection route through cachedExpandPath()

Adds 7 new test specs covering cache population, always-on expandPathCache
behaviour, and correct no-cache behaviour when viewDiscoveryCaching=false.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MUinjJLvJod1u9s2e9T6zc
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit d6ccd51. ± Comparison against base commit 8f32a22.

♻️ This comment has been updated with latest results.

@lmajano lmajano merged commit da807a1 into development Jun 19, 2026
25 of 28 checks passed
@lmajano lmajano deleted the claude/renderer-caching-optimization-4gup08 branch June 19, 2026 18:58
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