Skip to content

perf(fmt): use native ignore matcher - #301

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/feat-native-ignore-matcher
Aug 11, 2026
Merged

perf(fmt): use native ignore matcher#301
chenjiahan merged 2 commits into
mainfrom
chenjiahan/feat-native-ignore-matcher

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR moves config and --ignore-path matching from JavaScript to a reusable Rust matcher exposed through the lazy NAPI binding. It compiles independent ignore sources once, preserves source-level negation and directory semantics, and keeps the no-pattern lockfile fast path in JavaScript. The JavaScript fallback and native smoke scaffold are removed. Local real-repository benchmarks reduced matcher time by about 1.7× on rsbuild and 2.2× on rspack.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: b6860e3
Status: ✅  Deploy successful!
Preview URL: https://29a40ba4.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-native-ignor.rstack-cli.pages.dev

View logs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f7ac5f7877

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/rstack-ignore/src/lib.rs
@chenjiahan
chenjiahan merged commit d7104b2 into main Aug 11, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-native-ignore-matcher branch August 11, 2026 02:35
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