refactor(ai): Parallelize primary group processing #57

Merged
eleith merged 1 commits from gemini/feature/parallel-ai-processing into main 2025-09-05 20:15:02 +00:00
Owner

This commit introduces concurrency to the AI digest generation to improve performance.

The BuildDigestDataByAI function now processes each primary group in a separate goroutine.
A sync.WaitGroup is used to wait for all goroutines to complete.
A sync.Mutex is used to protect concurrent access to the results slice.
The final slice of primary groups is sorted alphabetically to ensure deterministic output for testing.

This commit introduces concurrency to the AI digest generation to improve performance. The `BuildDigestDataByAI` function now processes each primary group in a separate goroutine. A `sync.WaitGroup` is used to wait for all goroutines to complete. A `sync.Mutex` is used to protect concurrent access to the results slice. The final slice of primary groups is sorted alphabetically to ensure deterministic output for testing.
eleith added 1 commit 2025-09-05 20:11:48 +00:00
This commit introduces concurrency to the AI digest generation to improve performance.

The `BuildDigestDataByAI` function now processes each primary group in a separate goroutine.
A `sync.WaitGroup` is used to wait for all goroutines to complete.
A `sync.Mutex` is used to protect concurrent access to the results slice.
The final slice of primary groups is sorted alphabetically to ensure deterministic output for testing.
eleith merged commit 82c0436161 into main 2025-09-05 20:15:02 +00:00
eleith deleted branch gemini/feature/parallel-ai-processing 2025-09-05 20:15:02 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/miniflux-digest#57