Skip to content

Improve zkey load time #25

@oskarth

Description

@oskarth

Problem

It is slow to load zkey.

cargo test --release test_generate_proof2 -- --nocapture shows it takes ~70-80s to load in zkey for a ~80mb file (Keccak256).

Zkey is ~80mb but would expect this to be much faster.

This seems to be the case regardless of if we are using dylib or not.

Approaches

Two ideas:

  1. Figure out how to improve in terms of reading in the zkey file (maybe memmap or something, but this adds complexity for iOS integration)
  2. Do this separately and persist arkworks ProvingKey in a better way (e.g. serialize to disk beforehand)

Acceptance criteria

Much faster loading of zkey, or other way to improve this type of load up time

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfPerformance related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions