Measure the payload copy in the engine request, and share the block if it shows
Los mantenedores suelen responder en 6 días
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
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- performance
Línea de trabajo
Read crates/blockchain/src/beacon_engine.rs and the changes in lambdaclass/ethlambda#755 to understand NewPayloadRequest::into_owned and the engine import phase metric. Measure request construction on a live node with an execution client for typical and transaction-heavy blocks, comparing it with the roughly 157 ms transition time cited in the issue. If the copy is material, apply the outlined Arc ownership approach; done means the measurement is reported and any resulting change avoids the actor-thread copy while preserving the block for on_block_speculative.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Since lambdaclass/ethlambda#755, a pre-gloas beacon import with an execution client sends engine_newPayloadV4 from a spawned task while the chain actor computes the block's state transition. The task cannot borrow the block, so NewPayloadRequest::into_owned (crates/blockchain/src/beacon_engine.rs) clones the block's ExecutionPayload, transactions included, on the actor thread before the request is spawned. Three automated reviewers raised the copy across two review rounds of that PR.
Its cost has not been measured, neither typically nor for a transaction-heavy worst case, so it is not known how it compares with the transition it overlaps (~157 ms at the docs' p50). Since #755 the engine import phase (lean_block_import_phase_seconds{phase="engine"}) includes building the request, so the copy is visible there on a live node: the phase's floor, for blocks whose answer arrived before the transition finished, is roughly the request construction.
Measuring it was out of scope for #755, since it needs a live node with an execution client.
What a fix would look like, if the floor is material:
- Move the block into an
Arcfor the duration of the question. - Have the task build the request from its clone, so nothing is copied on the actor.
- Take the block back with
Arc::unwrap_or_clonebeforeon_block_speculative. The task has finished by then, so this does not clone in practice.
OwnedNewPayloadRequest and into_owned would then go away.
- Lenguaje dominante
- Rust
- Estrellas
- 86
- Forks
- 34
- Merge medio
- 9 d 20 h
- PR fusionados (30 d)
- 77
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 lambdaclass/ethlambda
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
lambdaclass/ethlambda#850 ·
Los mantenedores suelen responder en 6 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
lambdaclass/ethlambda#777 · 1 reacción ·
Los mantenedores suelen responder en 6 días
-
Run all gossip validation testsQuizá libre de nuevo @dicethedev la tomó hace 9 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
lambdaclass/ethlambda#725 · 2 comentarios ·
Los mantenedores suelen responder en 6 días
-
Handle malformed DB dataQuizá libre de nuevo @dicethedev la tomó hace 115 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
lambdaclass/ethlambda#529 · 4 comentarios ·
Los mantenedores suelen responder en 6 días
-
Document architectural choicesQuizá libre de nuevo @dicethedev la tomó hace 115 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
lambdaclass/ethlambda#521 · 2 comentarios ·
Los mantenedores suelen responder en 6 días
Todos los issues de lambdaclass/ethlambda
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
bytecodealliance/wrpc#1785 ·
Los mantenedores suelen responder en 1 día
-
2 advisory ignore entries no longer match anything (`quick-xml` already patched in `Cargo.lock`)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
longbridge/nsh#2758 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
antithesishq/bombadil#473 ·
Los mantenedores suelen responder en 2 días
-
bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timingsAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
libracoder/kiri#669 ·
Los mantenedores suelen responder en 1 día