prettier-plugin-organize-imports icon indicating copy to clipboard operation
prettier-plugin-organize-imports copied to clipboard

Prettier much slower when using this plugin

Open DaniloNovakovic opened this issue 7 months ago • 3 comments

Hi guys, I really like this plugin, however what I have noticed that it slows down prettier by quite a lot.

For example, here is with this plugin: image

and without this plugin (when I remove it from plugins in prettierrc) image

As you can see it essentially adds extra 100ms for each file, which has huge impact since we have big monorepo on our project, so this performance issue is very noticable.

Note: I also tried adding "organizeImportsSkipDestructiveCodeActions": true, but it didn't have any impact on performance.

Additional info: "prettier": "^3.0.3", "prettier-plugin-organize-imports": "^3.2.3", OS: Windows 10

Files are written in typescript + react + emotion.

DaniloNovakovic avatar Nov 15 '23 12:11 DaniloNovakovic