Great article!

You should use BenchmarkDotNet to measure time and memory. It does a warm-up to avoid measuring JIT time and automatically discards outliers.

You should also try using Span<T>. You’ll get better performance with easy to maintain code. Check my profile to find some articles on the subject.

Principal Engineer @ Farfetch - Future Retail Lab https://about.me/antao.almada

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store