-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
SwiftLint Compile Times Extremely Slow #5099
Comments
Related issue: #4261 |
Not really related, that issue is about the runtime performance of SwiftLint. Optimizing for compilation times hasn't been a goal of SwiftLint. IMO the real issue here is how SPM works if this is happening in every build. I personally always recommend people using a pre-built binary if they don't want to pay the compilation cost. |
You're correct to note that SwiftSyntax is responsible for the bulk of the compilation time. That's also tracked here: apple/swift-syntax#1194 This is why most users should be using pre-built SwiftLint binaries, which the SwiftPM plugin should be using by default. If that's not happening for you for some reason, please share more information. |
Not sure if related or if should I create a separate issue. I'm facing an issue of huge lint times when I try to pass concrete files to lint. In my project, it takes ~1 second to perform full lint of ~250 files and ~12 seconds when I pass ~60 files. Version 0.52.4. It takes ~1 second on Version 0.51.0 for example for the same 60 files. My teammate on a different project reported ~10 mins lint time on bigger file counts and on slower machines. |
How does that compare with running |
If that's a question for me, I use Cocoapods and binary there so not sure if it makes sense to check binary from Homebrew. |
Ah, it looks like my comment likely relates to #5018 instead |
@jpsim Is there a way to offer a Swiftlint binary as Xcode plugin? |
In my environment, pre-built binaries are used in SwiftLint 0.51.0, but starting from 0.52.0, it requires building from the source code including SwiftLintFramework, ArgumentParser, SwiftSyntax, etc. Perhaps the Has anyone else confirmed the same behavior? |
New Issue Checklist
Describe the bug
SwiftSyntax
Environment
The text was updated successfully, but these errors were encountered: