-
Notifications
You must be signed in to change notification settings - Fork 43
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
Use string.GetHashCode in ROM #191
Comments
MemoryExtensions.Equals just calls SequenceEqual, so no need to use that. |
However, the GetHashCode method looks to be extremely optimized and a good hash. See this "Marvin" class which is used by the method: |
As I said it does not work. See |
See #203 |
I understand. The suggestion here is to use
|
🤦 done |
https://docs.microsoft.com/en-us/dotnet/api/system.memoryextensions.equals?view=net-6.0#system-memoryextensions-equals(system-readonlyspan((system-char))-system-readonlyspan((system-char))-system-stringcomparison)
https://docs.microsoft.com/en-us/dotnet/api/system.string.gethashcode?view=net-6.0#system-string-gethashcode(system-readonlyspan((system-char)))
Should both be faster than existing implementations. Need IFDEF check for both.
The text was updated successfully, but these errors were encountered: