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
21 KiB
21 KiB