csharpier
csharpier copied to clipboard
perf: optimise `IgnoreFile` using `ValueTask` and `Span.Replace`
- Uses
ValueTaskto avoid allocating aTaskin synchronous paths - Use a
stackallocSpan<char>to resize and reformat paths - Avoid closure allocations for
Func
Saves around 5 MB, need to figure out how to benchmark this