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

Optimize alphabet cyrillic #116

Merged
merged 6 commits into from May 1, 2022
Merged

Optimize alphabet cyrillic #116

merged 6 commits into from May 1, 2022

Conversation

greyblake
Copy link
Owner

@greyblake greyblake commented Apr 24, 2022

Before

test bench_alphabet_cyrillic_calculate_scores ... bench:      91,479 ns/iter (+/- 6,833)
test bench_alphabet_latin_calculate_scores    ... bench:       2,459 ns/iter (+/- 204)
test bench_detect                             ... bench:   4,733,183 ns/iter (+/- 269,322)
test bench_detect_script                      ... bench:     110,753 ns/iter (+/- 15,023)

After

test bench_alphabet_cyrillic_calculate_scores ... bench:       2,176 ns/iter (+/- 449)
test bench_alphabet_latin_calculate_scores    ... bench:       2,562 ns/iter (+/- 610)
test bench_detect                             ... bench:   4,429,384 ns/iter (+/- 203,850)
test bench_detect_script                      ... bench:     112,496 ns/iter (+/- 14,456)

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.

None yet

1 participant