1.1.0
- Added SwiftSyntax (from swift 5.1) parser support which is now a default parser.
- Added --use-sourcekit arg in the commandline to allow use of SourceKit if needed.
- Updated type parsing checks for models.
- It's single-threaded for now due to a crash in SwiftSyntax (SyntaxVisitor:visitChildren) when multi-threaded.
- Benchmarking shows parsing via SwiftSyntax can be faster (even single-threaded) than via SourceKit multi-threaded:
--
Input: 1.8M LoC with 13K protocols
Output: 0.8M LoC with 11K mock classes
Via SwiftSyntax: 13s (-j1)
Via SourceKit: 46s (-j1), 22s (-j2), 12s (-j6), 10s (-j12)
(Measured on MBP-15, 6-core, 2018)
--