How We Made the Deno Language Server Ten Times Faster
Deno cut language server auto-completion latency in large codebases from about 8 seconds to under one second by fixing how its Rust server synchronizes project state with the embedded TypeScript compiler (tsc). Flamegraphs from a customer-modeled benchmark (75k lines of app code, 750k in dependencies) showed tsc spending most of its time pulling every file's contents across the expensive Rust-to-JavaScript boundary on each request. The fixes were to sync only local files, since remote npm:/jsr:/URL dependencies are cached and rarely change, and to add a JavaScript-side cache that the Rust server invalidates on file changes, which eliminated most cross-boundary calls. The improvements shipped in Deno 1.43.
Related posts
- Deno 1.43: Improved Language Server performance
Deno mediumAdeptDeno 1.43 cuts Language Server auto-completion latency in large codebases from 6-8 seconds to under one second and sharply reduces LSP memory use, fixing out-of-memory failures. It reworks node:vm and node:worker_threads for better npm compatibility with tools like Vitest, Docusaurus, Angular CLI and Next.js. It also adds V8 bytecode caching for 5-240% faster startup, a declarative `deno serve` subcommand, a `Deno.serve()` completion promise and `addr` property, JSX precompile skip options, `URL.parse()`, V8 12.4 with Float16Array, and Deno 2 breaking changes behind `DENO_FUTURE=1`.
- Deno 1.42: Better dependency management with JSR
Deno mediumAdeptDeno 1.42 adds first-class JSR support through new `deno publish` and `deno add` subcommands, which install packages from JSR and npm and write import map entries. It also adds LSP completions for jsr: specifiers and broadens Node compatibility across crypto, worker_threads, fs, http2 and other modules. Further changes include shell improvements in `deno task` (cross-platform shebangs, `$?`, redirects), `deno lint --fix`, and dropping mid-execution type checking under `--check`. Timers were rewritten so creating a million timers takes 1.4s instead of 5.9s with up to 70% less memory, startup is 10% faster on Linux, and `DENO_FUTURE=1` previews Deno 2 removals.
- Deno 2.9
Deno mediumAdeptDeno 2.9 introduces experimental `deno desktop`, which compiles a web UI plus Deno logic into a single native binary using either the OS webview or bundled Chromium via CEF, with native window, tray and dock APIs and cross-compilation to installers for all five targets. `deno install` now seeds `deno.lock` from npm, pnpm, yarn and Bun lockfiles with exact versions and hashes, migrates pnpm workspace config, and shims `node` for tools that shell out to it. Cold start drops from 34ms to 17ms through lazy-loaded Node globals, V8 code caching and a minified snapshot. A new Rust HTTP/1.1 path raises `Deno.serve` throughput 11–27% and cuts peak RSS by 2.2–3.1x. The release also adds CSS module imports, `deno link`/`deno list`, JSR packages in node_modules and automatic lockfile merge-conflict resolution.
- Deno 1.22 Release Notes
Deno mediumAdeptDeno 1.22 changes the default type checking mode from Full to Local across most subcommands, skipping type errors in dependencies to match tsc, with a proposed move to no type checking in `deno run` and `deno cache` in 1.23. The unstable `Deno.emit()`, `Deno.formatDiagnostics()` and `Deno.applySourceMap()` APIs are removed in favor of the userland `deno_emit` module, and workers now get the `Deno` namespace by default, subject to permissions. Other additions include a `--no-config` flag, `navigator.userAgent`, more DNS record types in `Deno.resolveDns()`, `Response.json()`, LSP linting on by default, AbortSignal support in `Deno.spawn()`, test runner output improvements, and `performance.timeOrigin`.
- Deno 1.24 Release Notes
Deno mediumAdeptDeno 1.24 moves all TypeScript emitting to swc and caches type-check results, making `deno check` 20% faster cold and 70–90% faster on reruns for codebases like oak. FFI calls become roughly 200x faster (nop from ~437ns to ~2ns) via V8 fast API calls and JIT-generated trampolines, and FFI gains thread-safe JS callbacks through `Deno.UnsafeCallback`, with pointers now represented as bigint. The release also adds `unhandledrejection` and `beforeunload` events (enabling Node `process` polyfills) and import-map-aware `import.meta.resolve()`. Other changes include a reworked unstable subprocess API with ref/unref, a `--parallel` test flag with config-file include/exclude, and std additions: semver, typed flags parsing and dotenv variable expansion.