Feature: Thread-safe `ProofBuilder`

オープン
#892 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
262
フォーク
64
平均マージ
1日 6時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

transparency-dev/tessera のほかの issue

transparency-dev/tessera の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。