Show HN:我用兩天時間,結合 AI 將 svelte-check 速度提升了 30 倍
一位開發者推出了 svelte-check-rs,作為 svelte-check 的直接替代品,它結合了 Rust、並行處理和 tsgo,將 CLI 診斷速度提升了 30 倍,特別針對 AI 編碼代理和 CI 管道進行了優化。
Drop-in replacement.Native speed.
Rust parser + parallel transforms + tsgo type-checking.
Same CLI. Same output. Faster feedback.
Built for agentic coding
svelte-check is built on Language Server Protocol infrastructure—optimized for IDEs with persistent connections, incremental updates, and interactive editing. Great for autocomplete and hover info. Slow for one-shot CLI checks.
svelte-check-rs is a batch-first CLI. No LSP. No language service overhead. Just fast, parallel diagnostics for CI pipelines and AI coding agents.
Keep using the Svelte VS Code extension for IDE features. Use svelte-check-rs when you need fast CLI feedback. Still on Svelte 4? Stick with svelte-check.
Why it's fast
Rust Parser
Zero-copy lexer and AST built for Svelte 5 runes. No Node.js startup overhead.
Parallel Transform
Svelte to TypeScript via rayon. All CPU cores. Source maps preserved.
tsgo Compiler
Microsoft's native Go port of TypeScript. 10x faster than tsc.
Install
CLI Reference
Core
Diagnostics
Performance
tsgo
Benchmark Methodology
Production SvelteKit monorepo. Stats are source files checked for diagnostics; TypeScript also loads the full node_modules dependency graph for type resolution.
相關文章