Avoid replaying the whole JS track cache for a latest-only subscriber
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- backend, performance
Direzione di ricerca
Start with js/net/src/track.ts, especially Producer.#addSink and #mirror, then read the linked refresh benchmark at js/net/bench/refresh.ts. Compare eager replay with locating the live edge and materializing readers as ranges need them; sweep retained groups and subscriber counts, including the history widening, late or expired group, and historical subscriber cases. Verify delivered keys and drops against current behavior, and report refresh and first-readable-group timings.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In just js bench refresh, 32 readers joining one track took 6.1 ms to request a refresh with 64 historical groups retained and 78.0 ms with 1,024. With 1,024 retained groups, one joining reader took 2.44 ms. The previous Nightly measured 7.8 and 81.9 ms for the same 32-reader cases. This measures elapsed time from subscribing until the publisher observes the refresh across one in-memory lite-07 hop. First decoded frame and network RTT are outside the measurement. Benchmark · Nightly JS results, raw/refresh.csv · Previous Nightly
Producer.#addSink makes a full expiry pass and visits every cached group for each new subscriber. For each eligible entry, #mirror creates a reader, inserts it in the subscriber’s timeline and queue, and attaches a readability callback. The default live subscription asks for the latest group. A local operation count at the linked revision wrapped Group.Producer.prototype.mirror while subscribing to a track of completed, one-frame groups. At 8, 64 and 256 retained groups, eight default subscribers created 64, 512 and 2,048 mirrors synchronously. Every reader’s first group was the latest. The one-reader controls created exactly 8, 64 and 256 mirrors. Subscribe and replay · Group mirrors
Compare eager replay with locating the live edge in the shared track index and materializing other readers as their ranges need them. Sweep retained groups and joining readers independently. Include a reader that widens into history after joining, a late or expired group, and a historical subscriber as controls. Check delivered keys and drops against the current reader, then report time to refresh and time to the first readable group.
(Written by GPT-6.2 Astra with xhigh)
- Lingua principale
- Rust
- Stelle
- 1.6k
- Fork
- 251
- Merge medio
- 10h 10m
- PR unite (30g)
- 832
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di moq-dev/moq
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
foundry-rs/starknet-foundry#4733 ·
I maintainer di solito rispondono entro 4 giorni
-
autofix:working
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
libracoder/kiri#1138 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
roc-lang/basic-webserver#277 ·
I maintainer di solito rispondono entro 1 giorno