Skip to content

fix: stabilize cache disk cleanup and reduce scan pressure#516

Merged
everpcpc merged 2 commits intomainfrom
codex/perf-cleanup-disk-cache
Feb 19, 2026
Merged

fix: stabilize cache disk cleanup and reduce scan pressure#516
everpcpc merged 2 commits intomainfrom
codex/perf-cleanup-disk-cache

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

@everpcpc everpcpc commented Feb 19, 2026

Summary

  • optimize ImageCache and ThumbnailCache cleanup with single-flight + 5s throttle
  • align cleanup thresholds to high-watermark (90%) and target (80%)
  • switch cache file scanning to FileManager.enumerator to reduce recursive traversal overhead
  • fix thumbnail cache size/count drift on overwrite writes
  • remove redundant cleanup wrapper in image cache
  • bump build version to 298

Commits

  • fix(cache): optimize disk cleanup behavior
  • chore: incr build ver to 298

Validation

  • make build-macos
  • make build

- add cleanup single-flight and throttling via CacheSizeActor\n- align image/thumbnail cleanup to 90% trigger and 80% target\n- avoid full recursive scans by switching to FileManager enumerator\n- fix thumbnail overwrite accounting drift and add cleanup logs\n- remove redundant image cache cleanup wrapper
@everpcpc everpcpc merged commit 61a8545 into main Feb 19, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/perf-cleanup-disk-cache branch February 19, 2026 05:56
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.

1 participant