Feature: Thread-safe `ProofBuilder`

Abierto
#892 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
go

Línea de trabajo

Start at client/client.go lines 186-195 and trace how ProofBuilder instances fetch tiles and perform hashing. Determine the concurrency and shared-work requirements from the existing proof-building path. Done means proofs can be generated concurrently with a thread-safe ProofBuilder while avoiding repeated tile fetching and hashing for merged entries.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

Description

The current ProofBuilder is not thread-safe. There is a demand from personality applications to build the proof after the entries have merged into the tree. If there are 500 entries being merged in a batch, the application will then create 500 ProofBuilders fetching the same tiles from the storage and doing the hashing works again and again. This becomes the performance bottleneck which slows down the write QPS.

https://github.com/transparency-dev/tessera/blob/05ff747c43888e4b42aa441f43080a560c9ae895/client/client.go#L186-L195

A thread-safe ProofBuilder is needed to generate the proofs concurrently and effectively.

Lenguaje dominante
Go
Estrellas
262
Forks
64
Merge medio
1 d 6 h
PR fusionados (30 d)
20

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de transparency-dev/tessera

Todos los issues de transparency-dev/tessera

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.