Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely slow when using Black on large files #426

Open
Hubro opened this issue Aug 12, 2022 · 4 comments
Open

Extremely slow when using Black on large files #426

Hubro opened this issue Aug 12, 2022 · 4 comments

Comments

@Hubro
Copy link

Hubro commented Aug 12, 2022

Using Black on a large Python file with Neoformat is extremely slow.

If the contents of the file doesn't require reformatting, :Neoformat black returns "no change necessary" in 3-400 ms, just like black in the command line. However, if I add an extra empty line so the file has to be reformatted, running the same command takes 3-4 full seconds. This is a massive pain to wait for every time I save the file.

Using the official Black plugin instead, reformatting takes pretty much exactly as long as it does when running Black through the command line, i.e. 3-400 ms.

@YuCao16
Copy link

YuCao16 commented Nov 8, 2022

Same here

@alecandido
Copy link

Something similar is happening also with prettier.

@long2ice
Copy link

Same here

@nicolasaunai
Copy link

still very slow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants