mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Replaces unbounded Promise.all with pMap and RELAY_BACKGROUND_CONCURRENCY (3) in js/nostr/dmSignalEvents.js and js/services/dmNostrService.js to prevent network saturation. Includes context logs and daily performance report. Co-authored-by: PR0M3TH3AN <[email protected]>
922 B
922 B
Context - Perf Agent - 2026-02-17
Goal
Improve application responsiveness by bounding concurrency in background network tasks, specifically for DM signal events and DM service operations.
Scope
js/nostr/dmSignalEvents.js: Fix unboundedPromise.allinpublishDmReadReceiptandpublishDmTypingIndicator.js/services/dmNostrService.js: Fix unboundedPromise.allinconnectandpublishSignedEvent.content/docs/guides/upload-content.md: Fix documentation port number (5500 -> 3000).
Assumptions
pMaputility works as expected.RELAY_BACKGROUND_CONCURRENCY(3) is an appropriate limit for these operations.
Definition of Done
- All
Promise.allusages in targeted functions are replaced withpMapwith concurrency limits. npm run lintpasses.npm run test:dm:unitpasses.npm run test:dm:integrationpasses.content/docs/guides/upload-content.mdis updated.