mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
901 B
901 B
Initial Baseline - Performance & Docs (Feb 2026)
Performance Bottlenecks
- Unbounded Concurrency (P0):
js/nostr/commentEvents.jsusesPromise.allfor relay requests inpublishCommentandlistVideoComments. This can saturate network connections if a user has many relays (20+), causing UI freeze or timeouts.- Remediation: Apply
pMapwithRELAY_BACKGROUND_CONCURRENCY(3).
- Remediation: Apply
- VideoEventBuffer (P1): Flushes every 75ms on event ingest regardless of visibility.
- Remediation: Implemented visibility gating (2026-02-13).
- WatchHistory (P2): Republish loop has backoff but no visibility check.
Documentation Gaps
- CORS Configuration:
content/docs/guides/upload-content.mdsuggestshttp://localhost:5500for CORS, but the default dev port is3000.- Remediation: Update port to
3000.
- Remediation: Update port to
- Upload Limit: 2GB (documented and code-verified).