Re-implement perf-optimization #73
Open
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.
This is re-implementation of #68 with little bit smaller change set this time.
All tests pass, but I don't know how good is the current test-coverage.
Meanwhile it's not magic, it does cut some execution time, here are the results from this PR dbarbashov#1
BenchmarkDotNet v0.15.2, Windows 11 (10.0.26100.5074/24H2/2024Update/HudsonValley)
13th Gen Intel Core i9-13900H 2.60GHz, 1 CPU, 20 logical and 14 physical cores
.NET SDK 9.0.304
[Host] : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2 DEBUG
DefaultJob : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2