Reddit
reddit.com › r/neovim › anyone know how to make prettier run faster when run on save? it takes about 2 seconds every time i write my buffer to desk for neovim to become responsive again.
r/neovim on Reddit: Anyone know how to make prettier run faster when run on save? It takes about 2 seconds every time I write my buffer to desk for Neovim to become responsive again.
November 30, 2021 -
I suspect this is because of how prettier runs, where it checks every single file. Or am I wrong here? Either way the delay is annoying, which doesn't occur when I use clang-format, for example.
Top answer 1 of 5
9
prettierd is a much faster solution than regular prettier. Definitely worth checking out, especially if you use null-ls.
2 of 5
5
If you want the fastest formatting of JS/TS then use Deno. It features a rust replacement of Prettier: { null_ls.builtins.formatting.deno_fmt, null_ls.builtins.formatting.prettier.with { disabled_filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' }, }, -- use deno instead } With the above you will get all the normal Prettier formatting, apart from Deno will take over for 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' filetypes :)
Stack Overflow
stackoverflow.com › questions › 71529331 › is-there-a-way-of-running-prettier-faster
performance - Is there a way of running Prettier faster? - Stack Overflow
hey @ErikI, it's a big project, that's why it takes more time for me. We also have Prettier plugin in VSCode, but some times we want to check the whole project like in CI for example.
Videos
08:02
The EASIEST Way To Switch From ESLint & Prettier to Biome — ...
03:18
Use Prettier to Speed Up Your Astro Development - YouTube
08:51
Clean Next.js Code With Prettier: Fast Configuration! - YouTube
15:04
I Will Never Use Prettier or ESLint Again - YouTube
13:38
Saying Goodbye To ESLINT and Prettier - YouTube
Prettier
prettier.io › blog › 2023 › 11 › 30 › cli-deep-dive
Prettier's CLI: A Performance Deep Dive · Prettier
November 30, 2023 - The cache file is stored under ./node_modules/.cache/prettier by default, and its location can be customized by passing the --cache-location <path> flag. I'll say it again: if performance matters for your scenario the single biggest thing to do to speed things up here is to remember the cache file between runs. ... An optimization opportunity would be speeding up hashing in Node. Calculating the same hashes in Bun seems ~3x faster, so surely there's some room for optimization there.
GitHub
github.com › fsouza › prettierd
GitHub - fsouza/prettierd: prettier, as a daemon, for improved formatting speed. · GitHub
Starred by 974 users
Forked by 31 users
Languages TypeScript 99.4% | JavaScript 0.6%
Deno
david.deno.dev › posts › faster-prettier-with-dprint
Speeding up Prettier locally and on your CI with dprint
We've seen how we can use dprint's CLI to speed up formatting with Prettier. For an example repo, see faster_prettier_example.
Prettier
prettier.io › blog › 2025 › 06 › 23 › 3.6.0
Prettier 3.6: Experimental fast CLI and new OXC and Hermes plugins! · Prettier
June 23, 2025 - First, we're shipping a new experimental high-performance CLI behind a feature flag (--experimental-cli). This CLI was previously only available in prettier@next, but now you can enable it simply by using a flag. We encourage you to try it out and share your feedback!
Better Programming
betterprogramming.pub › run-your-prettier-scripts-even-faster-ef85381cf28e
Run Your Prettier Scripts Even Faster | by Nerea Leguinazabal | ...
September 26, 2022 - But, wait… why is it even crashing? Is Prettier so heavy? Well, it can be when working with the default configuration and using the prettier plug-in for Apex. When running the formatting script, it takes around a second to go through each file, and this can be an issue when dealing with large projects.
npm
npmjs.com › package › pretty-quick
pretty-quick - npm
» npm install pretty-quick
Published Jun 02, 2025
Version 4.2.2
Author Lucas Azzola
Repository https://github.com/prettier/pretty-quick
GitHub
github.com › prettier › prettier-cli
GitHub - prettier/prettier-cli: A faster CLI for Prettier.
A faster CLI for Prettier. Contribute to prettier/prettier-cli development by creating an account on GitHub.
Starred by 40 users
Forked by 10 users
Languages JavaScript 50.9% | TypeScript 48.9% | JavaScript 50.9% | TypeScript 48.9%
Prettier
prettier.io › docs › install
Install · Prettier
If you forget to install Prettier first, npx will temporarily download the latest version. That’s not a good idea when using Prettier, because we change how code is formatted in each release! It’s important to have a locked down version of Prettier in your package.json. And it’s faster, too.
Hacker News
news.ycombinator.com › item
Speeding up Prettier locally and on your CI with dprint | Hacker News
April 30, 2022 - Edit: I'm especially impressed with its dependency management. Import maps are a breeze and a welcome change to... whatever is going on in Nodeland. Like, I don't have to set up my imports both in tsconfig.json and package.json and walk this delicate tightrope to make sure that things don't ...
GitHub
github.com › prettier › prettier › issues › 4776
Performance on big files · Issue #4776 · prettier/prettier
May 16, 2018 - I just found out that the performance metrics of prettier inside of Nuclide at Facebook: p50: 122ms p75: 203ms p90: 377ms It's not awesome but totally reasonable. However, for big files like this one (3k lines) it consistently takes mult...
Author vjeux