mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- Replace `Promise.all` with `pMap` in `js/nostr/commentEvents.js` to limit concurrent relay requests to `RELAY_BACKGROUND_CONCURRENCY` (3). - Update `content/docs/guides/upload-content.md` to use port 3000 for CORS, matching `npm start` default. - Update agent artifacts (`CONTEXT.md`, `TODO.md`, `DECISIONS.md`, `TEST_LOG.md`, `INITIAL_BASELINE.md`). Co-authored-by: PR0M3TH3AN <[email protected]>
10 lines
613 B
Markdown
10 lines
613 B
Markdown
# Initial Baseline - Performance & Docs (Feb 2026)
|
|
|
|
## Performance Bottlenecks
|
|
- **Unbounded Concurrency (P0):** `js/nostr/commentEvents.js` uses `Promise.all` for relay requests in `publishComment` and `listVideoComments`. This can saturate network connections if a user has many relays (20+), causing UI freeze or timeouts.
|
|
- **Remediation:** Apply `pMap` with `RELAY_BACKGROUND_CONCURRENCY` (3).
|
|
|
|
## Documentation Gaps
|
|
- **CORS Configuration:** `content/docs/guides/upload-content.md` suggests `http://localhost:5500` for CORS, but the default dev port is `3000`.
|
|
- **Remediation:** Update port to `3000`.
|