Skip to content

perf(fmt): optimize CLI display paths - #211

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-cli-display-paths
Aug 6, 2026
Merged

perf(fmt): optimize CLI display paths#211
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-cli-display-paths

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

rs fmt resolves each reported file path with path.relative, which adds avoidable work when many differences or errors are printed. This PR creates one display-path resolver per result report and reuses the shared root-prefix fast path, while preserving POSIX output and outside-root fallback behavior.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: beb1f37
Status: ✅  Deploy successful!
Preview URL: https://06d02270.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-perf-cli-display.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit a116666 into main Aug 6, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-cli-display-paths branch August 6, 2026 03:03
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