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

Updates related to discarded rows default #89

Merged
merged 2 commits into from
Jul 17, 2020
Merged

Conversation

cryptonemo
Copy link
Collaborator

No description provided.

@cryptonemo
Copy link
Collaborator Author

Related to filecoin-project/rust-fil-proofs#1219

@cryptonemo
Copy link
Collaborator Author

This an alternative, but based on #88

fix: update tests that need adjusted rows_to_discard values
@@ -168,7 +168,7 @@ impl StoreConfig {
match branches {
2 => std::cmp::min(max_rows_to_discard, 7),
4 => std::cmp::min(max_rows_to_discard, 5),
_ => std::cmp::min(max_rows_to_discard, 3),
_ => std::cmp::min(max_rows_to_discard, 2),

Choose a reason for hiding this comment

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

It's not obvious to me why this change is desired or correct. Can you explain? I probably am just not visualizing the flow of when this can be called or how it is used. Let's consider the case where a user has set a default rows_to_discard of 4 (just for example). Will this expression evaluating to 2 ever cause any problems? I guess the point is that this function won't be called at all in that case. But what motivates a change in the default here and now?

Copy link
Collaborator Author

@cryptonemo cryptonemo Jul 17, 2020

Choose a reason for hiding this comment

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

This is a method that provides a default, so setting a default (or having a pre-set default) is not related at this point. rust-fil-proofs (as of PR filecoin-project/rust-fil-proofs#1220) no longer uses this method at all, however if it did (i.e. current master), the 'default' value provided does not match the default that rust-fil-proofs defaults to, which is the main issue. Since it's no longer used, this could be not updated, but since it bit us once ...

Copy link

@porcuquine porcuquine Jul 17, 2020

Choose a reason for hiding this comment

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

Got it, thank you.

@cryptonemo cryptonemo merged commit 86a52ca into master Jul 17, 2020
@cryptonemo cryptonemo deleted the update-discard-rows branch July 17, 2020 18:22
@cryptonemo cryptonemo restored the update-discard-rows branch July 17, 2020 18:22
@cryptonemo cryptonemo deleted the update-discard-rows branch July 17, 2020 19:26
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.

2 participants