Skip to content

Make DynamicAvx2Searcher generic over it's needle type #42

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

Merged
merged 1 commit into from
May 4, 2021

Conversation

marmeladema
Copy link
Collaborator

We actually don't need to store a Box<[u8]> anymore in the generic case (i.e: the non specialized case, not backed by an array) since we have a proper Needle trait implemented for Box<[u8]>.

It gives additional flexibility to the user and should also improve a bit some of the oneshot benchmarks discussed in #40

@marmeladema marmeladema force-pushed the dynamic-with-generic-needle branch from 9daa742 to f9553b9 Compare May 3, 2021 22:20
Copy link
Contributor

@zakcutner zakcutner left a comment

Choose a reason for hiding this comment

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

Cool, I was going to suggest this a while back but I forgot about it. Thanks!

@marmeladema marmeladema merged commit 6de4f9c into master May 4, 2021
@marmeladema marmeladema deleted the dynamic-with-generic-needle branch May 4, 2021 14:36
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