Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accelerate signer fixtures creation in tests with pre-computation #2153

Open
4 tasks
jpraynaud opened this issue Dec 2, 2024 · 0 comments
Open
4 tasks

Accelerate signer fixtures creation in tests with pre-computation #2153

jpraynaud opened this issue Dec 2, 2024 · 0 comments
Assignees
Labels
devX 🌞 Developer experience

Comments

@jpraynaud
Copy link
Member

Why

The creation of test fixtures for the signers takes a long time due to the underlying cryptographic operations. We want to reduce the time of computation of these fixtures with some caching or pre-computation.

What

Implement pre-computation of signer fixtures with deterministic randomization.

How

  • Pre-compute and cache in a repository file the 10 most common signer fixtures that we use
  • Create a cache as a const map with a build script (read a pre-generated JSON file with cache key (party_index + party_id_seed) and cache entry the fixture generated by the existing builder)
  • When computing the fixtures, use the cache
  • Create a test (or very light binary) to pre-generate the JSON file with the cache keys and cache entries (and document it)
@jpraynaud jpraynaud added the devX 🌞 Developer experience label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devX 🌞 Developer experience
Projects
None yet
Development

No branches or pull requests

2 participants