How to split strings efficiently in C#
Briefly

Using ReadOnlySpan<char>.Split() significantly reduces memory allocations compared to the traditional string.Split() method, leading to improved performance in .NET applications that handle numerous and large string manipulations.
The string.Split() method creates a new array for every split operation, which not only consumes more memory but can also lead to increased garbage collection overhead and potential performance problems.
Read at InfoWorld
[
|
]