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

Get rid of add_to_hits_per_ref() min_diff parameter #330

Merged
merged 1 commit into from
Aug 26, 2023
Merged

Conversation

marcelm
Copy link
Collaborator

@marcelm marcelm commented Aug 26, 2023

The intention of this parameter is to disallow hits that span too different lengths on the query compared to the reference.

The parameter has a bit of a misleading name because it is actually the maximum allowed difference. (This can come from some of my refactoring. Within the function, it represents the minimum observed difference so far. The value provided as argument is merely its initial value.)

But mainly, the parameter has no effect at all and just initializing it to std::numeric_limits<int>::max() leads to the same decisions being made. (I temporarily added some code tested this.)

@ksahlin
Copy link
Owner

ksahlin commented Aug 26, 2023

approved.

@marcelm marcelm merged commit 8eb9f4a into main Aug 26, 2023
9 checks passed
@marcelm marcelm deleted the mindiff branch August 26, 2023 17:01
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