Get the latest tech news

How we made the Deno language server faster


When a customer reported performance issues with the Deno language server, we began a performance investigation that resulted in reducing auto-completion times from 6-8 seconds to under one second in large codebases. This is how we did it.

We created a benchmark that covered this use case — it mocks a series of API calls to the language server that mimicked a user clicking around files in a huge code base. The first wide purple segment (marked in red) represents the process where the TypeScript compiler is asking the Rust server for all of the contents of the files to synchronize the state of the project. That large purple segment on the left side is much narrower here, suggesting that we eliminated the time it takes for the state synchronization process between Rust and the TypeScript compiler.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Times

Times

Photo of deno language server

deno language server

Related news:

News photo

Rocket company develops massive catapult to launch satellites into space without using jet fuel: '10,000 times the force of Earth's gravity'

News photo

TDK unveils prototype solid-state battery with 20 times the energy density of closest competitor | These tiny wafer batteries could power small devices like the Apple Watch in just a couple of years

News photo

TDK claims solid state battery breakthrough