-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Redo minor cleanups in System.Runtime.Numerics #71274
Conversation
Tagging subscribers to this area: @dotnet/area-system-numerics Issue DetailsRedo a part of #53984
|
Yes, please. |
BenchmarkDotNet=v0.13.1.1786-nightly, OS=Windows 11 (10.0.22621.160)
Intel Core i7-8700K CPU 3.70GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores
.NET SDK=7.0.100-preview.5.22307.18
[Host] : .NET 7.0.0 (7.0.22.30112), X64 RyuJIT
Job-ATGARL : .NET 7.0.0 (42.42.42.42424), X64 RyuJIT
Job-BYBGPF : .NET 7.0.0 (42.42.42.42424), X64 RyuJIT
PowerPlanMode=00000000-0000-0000-0000-000000000000 IterationTime=250.0000 ms MaxIterationCount=20
MinIterationCount=15 WarmupCount=1
Slight regression for some tests. It's better to identify why. |
The benchmark may benefit from #71567 |
Some of these tests are fairly noisy and things like loop or data alignment can visibly impact the numbers. Of the regressions, they all look to be very minor (well within noise, often just 1-5ns) deviations and so even if legitimate, this is something we'd be willing to take to improve code readability, maintainability, and in the case of @dakersnar is going to take a look at this as a secondary review in the next couple days and get it merged. |
src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime.Numerics/src/System/Numerics/NumericsHelpers.cs
Show resolved
Hide resolved
@tannergooding I think you've got the wrong Drew! |
Indeed, meant to tag @dakersnar. Auto completion fail, sorry for the noise 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Stephen's suggestions, but looks good!
…nteger.cs Co-authored-by: Tanner Gooding <tagoo@outlook.com>
Redo a part of #53984
I don't expect it will cause regression this time. Should I run the benchmarks?