Skip to content

computeNewStateRoot performance issue at slot 0 of epoch #6194

@twoeths

Description

@twoeths

Describe the bug

At slot 0 of epoch, computeNewStateRoot somehow has a very big hashTreeRoot() time

Screenshot 2023-12-15 at 13 47 46

produce_block_holesky.cpuprofile.zip

This happens a long time ago since #5793 (comment)

Expected behavior

Fast hashTreeRoot() call in computeNewStateRoot() as the pre state there should cache a lot of hash objects already

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

v1.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    meta-bugIssues that identify a bug and require a fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions