-
Notifications
You must be signed in to change notification settings - Fork 21
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
Removed lookback_goodness_argmax
#258
Conversation
pco/src/delta.rs
Outdated
@@ -125,37 +125,34 @@ fn lookback_hash_lookup( | |||
} | |||
} | |||
|
|||
#[inline(never)] | |||
fn lookback_compute_goodness<L: Latent>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should change the name of this function now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
pco/src/delta.rs
Outdated
) { | ||
) -> usize { | ||
let mut best_goodness = 0; | ||
let mut best_lookback: usize = 0; | ||
for lookback_idx in 0..PROPOSED_LOOKBACKS { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just index into the proposed lookbacks with this? I believe if you run cargo clippy it will give you a lint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
Simplifies code and benchmarks indicate this change will improve performance.