mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 04:12:25 +00:00
Replaced serial decryption loop in `listDirectMessages` with `Promise.all` to process messages concurrently. This significantly reduces execution time when handling multiple encrypted events, especially when decryption involves async operations (like extension calls or workers). Measured improvement: Reduced processing time for 100 simulated messages from ~1021ms to ~14ms in benchmark. Co-authored-by: PR0M3TH3AN <[email protected]>