Measure and reduce JS group-expiry checks when several reads are stalled
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
- 46/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- performance
Direzione di ricerca
Start with the linked benchmark at js/net/bench/track.ts, then read the subscriber guard in js/net/src/track.ts and expiry listeners in js/net/src/group.ts. Hold the clock step, budget, retention and open groups fixed while varying stalled groups and subscribers; count eligibility checks, reader wakeups and expirations per delivered group. Done means identifying whether unchanged verdicts cause excess work and confirming prompt expiry and on-time delivery after any change.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In the last two Nightly track sweeps, publishing and delivering one new group to 16 subscribers with 16 earlier group reads parked per subscriber took 4.63 and 4.87 ms. With the same subscriber count and 16 pending stream opens per subscriber it took 3.01 and 3.19 ms. With no parked reads it took 0.146 and 0.156 ms. These rows retain 100 groups. The held rows also use a longer media budget and a different clock step, so the full difference needs a matched control before it can be attributed to expiry checks. Track benchmark · Latest measurements, raw/track.csv · Previous measurements
Each held group’s verdict depends on several signals shared by its subscriber, including the group queue, timeline and cursor. A new arrival can make many parked reads reconsider their budgets even when all remain usable. Stream-open waits watch the same verdict through GivenUp. Subscriber guard · Expiry listeners
A local control on the linked source kept 16 earlier groups open, the same consumer handles alive, the same clock step and media budget, and the same 100-group setup in all three cases. Counting calls to the expired() predicate passed through hooks.expireGroup over 30 new groups per case gave the following counts on each of three rotated runs:
| Subscribers | Earlier groups open, no parked operation | Parked reads | Parked stream opens |
|---|---|---|---|
| 1 | 32 | 64 | 64 |
| 4 | 128 | 256 | 256 |
| 16 | 512 | 1,024 | 1,024 |
Each cell counts checks per new group published to all subscribers. At 16 subscribers the median elapsed times with the counter enabled were 1.60, 3.43 and 1.94 ms per new group, respectively. The open-group control itself does substantial work, so profile it alongside the parked operations.
Hold the clock step, budget, retention and number of open groups fixed. Vary the number of stalled groups and subscribers independently, including open groups with no parked read. Count eligibility checks, reader wakeups and actual expirations per delivered group. If most checks leave the verdict unchanged, compare the current listeners with computing the shared drift inputs once per subscriber revision and revisiting only groups whose verdict can change. Check that a group still expires promptly on a deadline, a new live edge or a budget change, and that a healthy subscriber keeps receiving on time.
(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