-
Notifications
You must be signed in to change notification settings - Fork 88
Performance optimization #48
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
Open
ycherkes
wants to merge
20
commits into
JakeBayer:master
Choose a base branch
from
ycherkes:feature/less-alloc
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updated .gitignore to include .vshistory/. Upgraded NUnit3TestAdapter to 4.6.0. Refactored TestScoringEmptyString method in RegressionTests.cs. Simplified string formatting in ExtractedResult.cs. Updated target framework to NET8.0 in FuzzySharp.csproj. Simplified conditional logic in Levenshtein.cs. Refactored StringPreprocessorFactory.cs for better string trimming and switch expression. Used null-coalescing assignment in Process.cs methods. Made several scorer classes sealed. Removed unnecessary using directive in TokenAbbreviationScorerBase.cs. Optimized scoring logic in TokenAbbreviationScorerBase.cs. Changed several strategy classes to static. Optimized score calculation in PartialRatioStrategy.cs. Simplified Heap constructor and added null checks. Removed redundant ToList calls and optimized permutation logic in Permutation.cs. Simplified Cycles method in Permutation.cs.
target tests to netcore3.1,net8.0,netframework4.7.2
replace instance lambda with static copied from JakeBayer#42
- Implemented new Process.ExtractAll method, see [Issue!46](JakeBayer#46). - Added fastenstein to benchmarks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I created a fork Raffinert.FuzzySharp. Someone who'd like to try this can use this Raffinert.FuzzySharp NuGet until this PR is merged.
Accent to performance and allocations. See Benchmark.
Support local languages more naturally (removed regexps "a-zA-Z"). All regexps were replaced with string manipulations (fixes PR!7).
Extra performance improvement, reused approach Dmitry Sushchevsky - see PR!42.
Implemented new Process.ExtractAll method, see Issue!46.
Remove support of outdated/vulnerable platforms netcoreapp2.0;netcoreapp2.1;netstandard1.6.
Before:
BenchmarkDotNet v0.14.0, Windows 11 (10.0.22631.3880/23H2/2023Update/SunValley3)
12th Gen Intel Core i7-1255U, 1 CPU, 12 logical and 10 physical cores
.NET SDK 8.0.303
[Host] : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
DefaultJob : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
After: