-
Notifications
You must be signed in to change notification settings - Fork 1
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
rustfmt is slower with dprint-plugin-exec #29
Comments
yeah I noticed the same thing with some other formatters - This ofc means that you pay the spin up / spin down cost for the executable - which is BRUTAL. If we could do something like "pipe/pass list of files and expect a JSON response" then it would be much more efficient in every way. |
I'd recommend ensuring that incremental formatting is not disabled (don't have Unfortunately I have too many projects and so I had to cut back somehow. dprint-plugin-rustfmt was dropped because dealing with its upgrades became difficult and a drawback with using it was that running
The issue is that it needs to also work in an editor scenario where the file might not exist on the file system. Additionally, adding this introduces complexity both for dprint's plugin system and for users configuring the exec plugin because they'd have to provide a way to get executables to work with file paths and when formatting via stdin.
Yeah, this is why dprint-plugin-prettier and dprint-plugin-roslyn still exist. Languages like JS and C# (when not using AOT compilation) are too slow to startup, but rustfmt is fast enough. |
I think archiving the repository and blocking any contribution is not the solution to the maintainace burden. Even if someone is interested in helping you, they cannot make a pull request. https://github.com/dprint/dprint-plugin-rustfmt Now, dprint is moving against the very reason I was using it: Fast formatting and built-in integration. I also do not understand this requirement that everything should run inside WASM. Why is that a requirement, and why is it worth damaging the ecosystem because of WASM? |
Given the recent versions, I am forced to use
dprint-plugin-exec
for formatting the rust files. However, I have noticed ~3 times a slow down in my project. It seems that passing individual files to rustfmt is much slower than letting it handle multiple files at the same time in parallel.The text was updated successfully, but these errors were encountered: