3 ms·
I've been moving some libraries over from T[] to Memory<T> and Span<T>. I've found it's a little tricky to get used to calling Slice() all the time. But it ope
by algorithmsRcool 8y ago
I've been moving some libraries over from T[] to Memory<T> and Span<T>.
I've found it's a little tricky to get used to calling Slice() all the time. But it opens up so many doors for allocation reduction and perf improvement.
Also, it is so nice to not have to pass (array, offset, length) around everywhere