-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
[FR]: Support running formatters in parallel #355
Comments
It's unusual to want to format all ~1000 files - perhaps you should call the formatter from a tool like pre-commit that knows which files have been changed? |
Does Regarding sharding, I think using |
format_test can't tell which files have changed. It would need some connection to version control, which is out of scope here. Also if you list the files to check, then it's hermetic and should be a cache hit, so vcs logic would make it non-hermetic (you could get a cache hit on a run that only checked a subset of files) |
More thoughts:
|
What is the current behavior?
Files are passed via xargs to the formatter tool and run serially
Describe the feature
I have multiple C++ projects with large numbers of files (~1000) that take a very long time to format serially. We can use
xargs -P
to invoke multiple instances of the formatter. I'm not sure how the maximum number of processes should be determined.The text was updated successfully, but these errors were encountered: