Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

spike: Memory invalidation inefficiencies #23

Description

@clabby

Overview

Memory in Cannon contains a cache for recently accessed pages, and within those pages a cache for intermediate nodes to reduce the merkleization time. When the page data is invalidated (i.e. it's been changed), the root will need to be recalculated on the next pass.

The program is pretty performant, but merkleization is expensive and takes the most time during each step (w/ proof generation turned on), so it would be great to look into how we can further optimize this codepath to decrease cache misses and redundant recomputation of merkle roots.

Refs:

flamegraph

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededmipsevmTouches the `cannon-mipsevm` crateperfPerformance related

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions