Avoid replaying the whole JS track cache for a latest-only subscriber
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- backend, performance
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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)
- Lenguaje dominante
- Rust
- Estrellas
- 1.6k
- Forks
- 251
- Merge medio
- 10 h 10 min
- PR fusionados (30 d)
- 832
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de moq-dev/moq
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Bump the quest flake input past kixel-ai/quest#1202 (Codex reviews use the config's gateway)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de moq-dev/moq
Issues similares
-
Mobile release verification reports missing build inputs with a custom Cargo target directoryAbiertobug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsotto/sotto-authenticator#139 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
registrystack/registry-stack#2924 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
foundry-rs/starknet-foundry#4733 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100