Settings

Theme

Vite 4.3 – Up to 3x faster dev cold starts

vitejs.dev

4 points by brillout 3 years ago · 1 comment

Reader

brilloutOP 3 years ago

Interestingly, Vite itself is written in a slow interpreted language (JavaScript/TypeScript) while using compilers that are written in fast native languages such as ESBuild (written in Go).

It's a nice showcase of successfully applying the strategy of focusing on hotpath performance instead of blindly making every line of code "fast".

Also, Vite being written in JavaScript is much friendlier to the ecosystem. I myself made many PRs to Vite which I would have done much less if it involved a more complex language.

Shameless plug: I'm the author of https://vite-plugin-ssr.com which is a Next.js/Nuxt alternative but with a "do-one-thing-do-it-well architecture"[1].

[1]: https://vite-plugin-ssr.com/architecture#do-one-thing-do-it-...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection