realm / realm/SwiftLint

SwiftLint Compile Times Extremely Slow

Open
#5,099 10 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

integration
Dominant language
Swift
Stars
19.7k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
11

Description

New Issue Checklist
Describe the bug
  • When compiling the app with the SwiftLint SPM plugin installed, the compile times are extremely slow.
  • It looks like the culprit is SwiftSyntax

Screenshot 2023-07-05 at 10 04 15 AM

Environment
  • SwiftLint version: 0.52.3
  • Xcode version: 14.3.1
  • Installation method: SPM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the slow compile with the SwiftLint SPM plugin installed in Xcode 14.3.1, then inspect the plugin and its SwiftSyntax dependency for the source of the delay. Done means the reported compile-time regression is understood and addressed, with the improvement verified by rebuilding the affected app.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.