csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

perf: optimise `IgnoreFile` using `ValueTask` and `Span.Replace`

Open TimothyMakkison opened this issue 2 months ago • 0 comments

  • Uses ValueTask to avoid allocating a Task in synchronous paths
  • Use a stackalloc Span<char> to resize and reformat paths
  • Avoid closure allocations for Func

Saves around 5 MB, need to figure out how to benchmark this

TimothyMakkison avatar Nov 06 '25 23:11 TimothyMakkison