Fewer allocations with Span<T> in .NET
Span<T> lets you work on a slice of memory without a copy. A small parser shows the change, before and after.
9 minute read
Category
C# and .NET code that allocates less memory, shown with small programs that you can run and measure.
Span<T> lets you work on a slice of memory without a copy. A small parser shows the change, before and after.
9 minute read