MOFAKH.COM
← Back to profile
C#

Span<T>, stackalloc and allocation-free parsing

unwrittenOutline
Note to self
Not written yet. This is the outline I am working from — it will be filled in as I go through the topic.
  • Span<T> vs ReadOnlySpan<T> vs Memory<T> — when each is legal
  • stackalloc, safety rules, and why a Span cannot cross an await
  • Parsing a CSV line with zero allocations
  • Benchmarking it honestly with BenchmarkDotNet