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

Add meta methods: dupe_at_threshold_<n>? #63

Merged
merged 2 commits into from
May 19, 2017

Conversation

MatzFan
Copy link
Collaborator

@MatzFan MatzFan commented Feb 27, 2017

In my problem domain (& I guess many others) I am happy with a set custom threshold and do not need to change it in every #duplicate? method call. I've therefore added a set of 'duplicate' methods with fixed, custom thresholds, created at require time. In testing with a cross comparison of around 10,000 images for duplicates, using one of the meta methods (e.g. #dupe_at_threshold_7?) gave a 40% + performance improvement vs. using #duplicate? which reads from a threshold parameter on each call.

@westonplatter
Copy link
Owner

@MatzFan thanks for the pull request. Looks good to me. Merging.

@westonplatter westonplatter merged commit d04b710 into westonplatter:master May 19, 2017
@MatzFan MatzFan deleted the add_meta_methods branch September 28, 2017 08:00
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