StephenCleary / Comparers

The last comparison library you'll ever need!
MIT License
427 stars 33 forks source link

NaturalStringComparer #31

Open StephenCleary opened 4 years ago

StephenCleary commented 4 years ago

Split from #23

Light-up usage of CompareTo and Equals for spans of chars to make natural string comparisons allocation-free on .NET Core 2.1+.

Light-up GetHashCode for spans of chars to make it allocation-free on .NET Core 3.0+.

StephenCleary commented 4 years ago

Possibly can make use of MemoryExtensions.CompareTo.