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

chore: Optimize public parameter serialization with bincode #391

Merged
merged 1 commit into from
May 5, 2023

Conversation

huitseeker
Copy link
Contributor

  • Introduce bincode dependency to replace serde_json in serialization and deserialization
  • Improve error message for cache deserialization issues in public_parameters module

Contributes to #387 : reduces the reading time by ~2x (1000s to 500s on my machine), the cache size by ~2x (2.1GB to 1.1GB). Hopefully this is just the start.

@huitseeker huitseeker requested a review from a team as a code owner May 5, 2023 17:06
winston-h-zhang
winston-h-zhang previously approved these changes May 5, 2023
Copy link
Contributor

@winston-h-zhang winston-h-zhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@huitseeker huitseeker enabled auto-merge May 5, 2023 17:22
- Introduce `bincode` dependency to replace `serde_json` in serialization and deserialization
- Improve error message for cache deserialization issues in `public_parameters` module
Copy link
Contributor

@porcuquine porcuquine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, slap a --release in there per #392 and we'll really be cooking with gas!

@huitseeker huitseeker added this pull request to the merge queue May 5, 2023
Merged via the queue into lurk-lab:master with commit e1decbc May 5, 2023
@huitseeker huitseeker deleted the serde_json_to_bincode branch May 5, 2023 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants