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

perf: enable reconstruct trace/commit by default instead of using disk + lower memory usage #323

Merged
merged 9 commits into from Feb 27, 2024

Conversation

jtguibas
Copy link
Contributor

No description provided.

@jtguibas jtguibas changed the title perf: enable reconstruct trace/commit by default instead of using disk perf: enable reconstruct trace/commit by default instead of using disk + lower memory usage Feb 27, 2024
@@ -64,7 +64,7 @@ impl<SC: StarkGenericConfig> ShardMainData<SC> {
where
ShardMainData<SC>: Serialize,
{
let mut writer = BufWriter::new(&file);
let mut writer = BufWriter::with_capacity(1024 * 1024 * 512, &file);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this capacity be some env variable as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Going to remove this as I didn't notice any speedup from it.

@@ -476,6 +476,12 @@ pub(super) mod baby_bear_blake3 {
}
}

impl Clone for BabyBearBlake3 {
Copy link
Contributor

Choose a reason for hiding this comment

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

where do we need to clone the config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now it's required in prove_with_config, but maybe it's not necessary?

Copy link
Contributor

Choose a reason for hiding this comment

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

I just removed the bound and it seems fine.

@jtguibas jtguibas merged commit d06c2ed into main Feb 27, 2024
5 checks passed
@jtguibas jtguibas deleted the john/reconstruct-commit branch February 27, 2024 18:24
jtguibas added a commit that referenced this pull request Mar 29, 2024
…k + lower memory usage (#323)

Co-authored-by: John Guibas <jtguibas@Johns-MBP.monkeybrains.net>
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.

None yet

2 participants