Skip to content

Conversation

@jpsim
Copy link
Collaborator

@jpsim jpsim commented Nov 3, 2022

This update pulls in swiftlang/swift-syntax#1050, which fixes a memory leak, reducing memory usage by up to 3x and improves lint times by 20%-50% in my tests.

@SwiftLintBot
Copy link

SwiftLintBot commented Nov 3, 2022

18 Messages
📖 Linting Aerial with this PR took 1.18s vs 1.44s on main (18% faster)
📖 Linting Alamofire with this PR took 1.47s vs 2.08s on main (29% faster)
📖 Linting Brave with this PR took 7.41s vs 10.09s on main (26% faster)
📖 Linting DuckDuckGo with this PR took 3.26s vs 4.17s on main (21% faster)
📖 Linting Firefox with this PR took 7.05s vs 9.18s on main (23% faster)
📖 Linting Kickstarter with this PR took 10.22s vs 14.9s on main (31% faster)
📖 Linting Moya with this PR took 0.64s vs 0.96s on main (33% faster)
📖 Linting NetNewsWire with this PR took 3.34s vs 4.18s on main (20% faster)
📖 Linting Nimble with this PR took 0.65s vs 0.92s on main (29% faster)
📖 Linting PocketCasts with this PR took 8.06s vs 15.2s on main (46% faster)
📖 Linting Quick with this PR took 0.24s vs 0.29s on main (17% faster)
📖 Linting Realm with this PR took 11.87s vs 17.09s on main (30% faster)
📖 Linting SourceKitten with this PR took 0.46s vs 0.57s on main (19% faster)
📖 Linting Sourcery with this PR took 2.53s vs 3.63s on main (30% faster)
📖 Linting Swift with this PR took 4.78s vs 6.45s on main (25% faster)
📖 Linting VLC with this PR took 1.37s vs 1.7s on main (19% faster)
📖 Linting Wire with this PR took 15.97s vs 18.3s on main (12% faster)
📖 Linting WordPress with this PR took 11.45s vs 14.17s on main (19% faster)

Generated by 🚫 Danger

@jpsim
Copy link
Collaborator Author

jpsim commented Nov 3, 2022

19% to 47% faster and a ~3x memory reduction 🤯

@jpsim
Copy link
Collaborator Author

jpsim commented Nov 3, 2022

Comparing the Xcode memory graph before and after:

Before After
image image

@jpsim
Copy link
Collaborator Author

jpsim commented Nov 3, 2022

Will merge once swiftlang/swift-syntax#1050 lands in main.

@jpsim jpsim changed the title Eliminate SyntaxArena.default Update SwiftSyntax Nov 4, 2022
@jpsim jpsim marked this pull request as ready for review November 4, 2022 09:36
@jpsim jpsim enabled auto-merge (squash) November 4, 2022 09:40
@jpsim jpsim merged commit 759408f into main Nov 4, 2022
@jpsim jpsim deleted the eliminate-syntaxarena.default branch November 4, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants