 google-labs-jules[bot]andPR0M3TH3AN
|
ab441ce0c4
|
⚡ Optimize watch history publishing with parallel execution
- 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]>
|
2026-02-05 19:38:13 +00:00 |
|