Skip to content

Comments

feat(health): optimize library sync memory and recovery logic#76

Merged
drondeseries merged 1 commit intomainfrom
feat/health-sync-optimization-v2
Feb 9, 2026
Merged

feat(health): optimize library sync memory and recovery logic#76
drondeseries merged 1 commit intomainfrom
feat/health-sync-optimization-v2

Conversation

@drondeseries
Copy link
Owner

This PR provides critical memory optimizations and finalized path recovery:

  • Memory Optimization: Replaced high-contention mutex slices with a buffered channel collector during library sync. This significantly reduces memory spikes when processing large libraries (50k+ files).
  • Safe Recovery: Finalized the folder-agnostic path recovery logic that automatically heals broken library_path records.
  • Absolute Path Enforcement: Ensures all recovered paths are absolute to prevent repair failures.
  • Performance: Improved concurrency handling in the library sync worker.

@drondeseries drondeseries merged commit cdcf5a6 into main Feb 9, 2026
1 check passed
@drondeseries drondeseries deleted the feat/health-sync-optimization-v2 branch February 14, 2026 19:44
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