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

16-bit (ushort) diagonal calculation #20

Merged
merged 1 commit into from
May 13, 2020
Merged

Conversation

Turnerj
Copy link
Owner

@Turnerj Turnerj commented May 3, 2020

Adds support for a ushort fast-path in the diagonal calculation, allowing up to 16x items to be processed at once.

Its approximately 15% faster for strings smaller than ushort.MaxValue in a 8000 character benchmark.

Int32

Method Mean Error StdDev Gen 0 Gen 1 Gen 2 Allocated
Quickenshtein 26.68 ms 0.213 ms 0.189 ms - - - -

ushort

Method Mean Error StdDev Gen 0 Gen 1 Gen 2 Allocated
Quickenshtein 23.15 ms 0.112 ms 0.105 ms - - - -

@Turnerj Turnerj changed the title 16-bit (Ushort) diagonal calculation 16-bit (ushort) diagonal calculation May 3, 2020
@Turnerj Turnerj merged commit 31f9665 into master May 13, 2020
@Turnerj Turnerj deleted the multi-type-processing branch May 13, 2020 12:49
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.

1 participant