Skip to content

perf: optimise IgnoreFile using ValueTask and Span.Replace#1740

Draft
TimothyMakkison wants to merge 2 commits intobelav:mainfrom
TimothyMakkison:optimise_cli_ignore
Draft

perf: optimise IgnoreFile using ValueTask and Span.Replace#1740
TimothyMakkison wants to merge 2 commits intobelav:mainfrom
TimothyMakkison:optimise_cli_ignore

Conversation

@TimothyMakkison
Copy link
Contributor

  • 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 TimothyMakkison marked this pull request as draft November 6, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant