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.
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 main2025-09-05 20:15:02 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This commit introduces concurrency to the AI digest generation to improve performance.
The
BuildDigestDataByAIfunction now processes each primary group in a separate goroutine.A
sync.WaitGroupis used to wait for all goroutines to complete.A
sync.Mutexis used to protect concurrent access to the results slice.The final slice of primary groups is sorted alphabetically to ensure deterministic output for testing.