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

Add "astyle-all" rule to Makefile #51897

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Conversation

eltank
Copy link
Contributor

@eltank eltank commented Sep 26, 2021

Summary

None

Purpose of change

"make astyle" got ~100 times slower on Windows + MSYS2 after #51731.
Each invocation of astyle on one file takes a few seconds, so astyling all the files takes several minutes, even with "-j8".
This PR brings back the old method of astyle that processes all the files at once, using a new make target.

Describe the solution

Add "astyle-all" make target, using the definition prior to #51731.

Describe alternatives you've considered

Trying to debug why "make astyle" is slow. I wouldn't even know where to begin.

Conditionally defining "make astyle" using the old logic if the OS is Windows? I don't know if this is Windows specific of MSYS2 specific.

Testing

Ran "make astyle-all". It finished in seconds, which is what I'm used to seeing.

Additional context

Runs astyle on all source files simultaneously, which on Windows+MSYS2
takes about the same amount of time as running astyle on a single file,
making this much faster than "make astyle" even with -j8.
@anothersimulacrum
Copy link
Member

Quite possibly Windows process creation overhead.

@anothersimulacrum anothersimulacrum added Code: Build Issues regarding different builds and build environments OS: Windows Issues related to Windows operating system labels Sep 26, 2021
@kevingranade kevingranade merged commit d8f8684 into CleverRaven:master Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Build Issues regarding different builds and build environments OS: Windows Issues related to Windows operating system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants