ChainSafe / ChainSafe/lodestar

Big state hashTreeRoot() time in lodestar

Open
#6,598 0 comments 0 reactions 0 assignees View on GitHub
meta-feature-request
Dominant language
TypeScript
Stars
1.4k
Forks
483
Avg merge
1d 16h
Merged PRs (30d)
150

Description

### Problem description

state hashTreeRoot() takes up to 1s - 1.5s frequently, need to find a way to improve it

Screenshot 2024-03-26 at 15 11 25

this is likely to happen after processing an epoch, in rare case it could be up to 1.8s on holesky #6194

### Solution description

Reduce it as much as possible
- Improve our hash function either by SIMD [here](https://github.com/ChainSafe/ssz/issues/356) or (most likely) [hashtree](https://github.com/ChainSafe/ssz/issues/355) work by @wemeetagain
- Find a way to consume it in persistent-merkle-tree

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.