Version string parsing performance in .NET
Is regex harmful to runtime performance? I attempted a few different approaches to parsing version strings, and found regex performance awful. Unless someone can help me learn if I'm doing something poorly, my conclusion is that RegEx is for development productivity, but should be avoided on performance hot paths.
NuGet Version Performance Deep Dive
In my previous post, I tested a few different semantic version data structures to see how the data structure impacts sorting performance. One of my implementations was very similar to NuGet's NuGetVersion
class, in the NuGet.Versioning
package. My "clean room" implementation was significantly faster than NuGet's. In this post I dig deeper to find out why.
Semantic Version Sorting Performance in .NET
A few weeks ago, my colleague reported that something he was working on was super slow when there were many versions. Although the issue doesn't say anything about sorting, it got me thinking that NuGet's NuGetVersion
sorting implementation could probably be improved. In this blog post I do an initial investigation.