mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- Implemented `pMap` utility for concurrent async mapping with a limit. - Refactored `publishRecords` in `js/nostr/watchHistory.js` to use `pMap` instead of serial `for...of` loop. - Added `tests/benchmark_watch_history_publish.mjs` to verify performance. Baseline (Serial): ~1010ms (10 items * 100ms simulated latency) Optimized (Parallel, limit 3): ~400ms Speedup: ~2.5x faster. Co-authored-by: PR0M3TH3AN <[email protected]>