Files
gastown/internal/mail
Boden Fuller a5bbe24444 perf: parallelize mail inbox queries for ~6x speedup
The listFromDir function was making 3-6 serial bd subprocess calls
(one per identity variant × status). This caused gt mail inbox to take
~32 seconds in typical setups.

Change to run all queries in parallel using goroutines, reducing
inbox load time to ~5 seconds.

Implementation notes:
- Pre-allocate results slice indexed by query position (no mutex needed)
- Deduplication happens after wg.Wait() in single-threaded collection
- Existing error handling preserved (partial success allowed)

Fixes #705
2026-01-21 14:15:23 -05:00
..