var indices = new List<int>(capacity: 128) { -1 };
var textAsSpan = LoremIpsum.AsSpan();
while (true)
{
var start = indices[^1] + 1;
if (start == _loremIpsumLength)
break;
var index = textAsSpan.Slice(
start,
length: _loremIpsumLength - start)
.IndexOfAny(_sv);
indices.Add(start + index);
}
Is your feature request related to a problem? Please describe. Текущая реализация использует LinkedList и регулярные выделения Span'ов, что неоптимально https://github.com/Stepami/hydrascript/blob/master/src/Domain/HydraScript.Domain.FrontEnd/Lexer/Impl/TextCoordinateSystemComputer.cs
Describe the solution you'd like