csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

perf: cache `IgnoreWithBasePath`

Open TimothyMakkison opened this issue 1 month ago • 0 comments

Repeatedly compiling regex for ignore files is a significant amount of runtime, caches the IgnoreWithBasePath to prevent this.

Before

Method Mean Error StdDev Gen0 Gen1 Allocated
FormatCli 955.0 ms 17.65 ms 29.98 ms 9000.0000 1000.0000 81.5 MB

After

Method Mean Error StdDev Gen0 Allocated
FormatCli 683.5 ms 13.61 ms 30.17 ms 7000.0000 69.33 MB

TimothyMakkison avatar Nov 15 '25 12:11 TimothyMakkison