-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[fixes
] UInt160 Class
#3422
[fixes
] UInt160 Class
#3422
Conversation
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.
In general I think that this PR is slower than the previous version, and it doesn't fix nothing.
What makes you Using Plus I
So you can do Fixed Just read 1st post |
I will do a benchmark for you chris, wait me for one day. |
|
@cschuchardt88 @shargon please check the benchmark, some methods become way slower than before. |
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 think that this pr should not be merged because it was not proved that is faster
|
@shargon @Jim8y As you can see everything is the same but Tests are not accurate BenchmarkDotNet v0.13.12
.NET SDK 8.0.303
|
@Jim8y @shargon @vncoelho @roman-khimov |
I've never seen |
@shargon check to see if all your changes have been made. |
What we say about this pr, are we going to merge this one? i run the bechmark again, the performance is still slower for some methods. |
UInt160 bytes = new byte[20];
UInt160 strs = "0x1230000000000000000000000000000000000000"; |
If the performance is not lower, I'm good with the code |
Change Log
GetHashCode
methodimplicit
string
toUInt160
implicit
byte[]
toUInt160
TryParse
methods test casesType of change
How Has This Been Tested?
Unit Tests Locally
Checklist: