Skip to content

Improve dotnet format whitespace performance and add persistent cache - #56394

Open
rmannibucau wants to merge 3 commits into
dotnet:mainfrom
rmannibucau:dev/format-perf
Open

rmannibucau wants to merge 3 commits into
dotnet:mainfrom
rmannibucau:dev/format-perf

Conversation

@rmannibucau

Copy link
Copy Markdown
  • Format whitespace without MSBuild: enumerate files from .sln/.csproj and build a folder workspace instead of a full MSBuildWorkspace
  • Skip unchanged files before applying formatters (FormatCache) and reuse cached results via the cache-backed fast path; add --no-cache switch
  • Parallelize document formatting and text diffing while keeping logging and solution application ordered
  • Apply end-of-line and charset fixes only when configured, and skip EOL normalization when no changes are needed
  • Fix .sln project path parsing with backslashes and report exit code 1 for unsupported (F#) project workspaces
  • Regenerate localized resources and add benchmarks

- Format whitespace without MSBuild: enumerate files from .sln/.csproj and
  build a folder workspace instead of a full MSBuildWorkspace
- Skip unchanged files before applying formatters (FormatCache) and reuse
  cached results via the cache-backed fast path; add --no-cache switch
- Parallelize document formatting and text diffing while keeping logging
  and solution application ordered
- Apply end-of-line and charset fixes only when configured, and skip EOL
  normalization when no changes are needed
- Fix .sln project path parsing with backslashes and report exit code 1
  for unsupported (F#) project workspaces
- Regenerate localized resources and add benchmarks
@rmannibucau
rmannibucau requested a review from a team as a code owner September 24, 2026 14:41
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants