ChainSafe / ChainSafe/lodestar

[gloas] fork-choice compute_head performance issue

Open
#9,014 0 comments 0 reactions 0 assignees View on GitHub
meta-bug spec-gloas
Dominant language
TypeScript
Stars
1.4k
Forks
483
Avg merge
1d 16h
Merged PRs (30d)
150

Description

### Describe the bug

this is what happened on a network of <2000 validators (epbs-devnet-0)

Image

this is way higher than mainnet (>2M validators)

Image

### Expected behavior

it should take way less than mainnet

### Steps to reproduce

_No response_

### Additional context

`computeDeltas()` is used to be the main performance bottle neck on mainnet, it's great in `epbs-devnet-0`
so the issue should be somewhere during `this.protoArray.applyScoreChanges()`

Image

### Operating system

Linux

### Lodestar version or commit hash

unstable/epbs-devnet-0

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.