Skip to content

[5.0-12-12-2018][Parse] Eliminate backtracking in collection expression parsing #21694

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jan 8, 2019

(Cherry-pick of #21674 to swift-5.0-branch-12-12-2018)

Parsing collection literal expression used to take exponential time depending on the nesting level of the first element.

Stop using parseList() because using it complicates libSyntax parsing.

rdar://problem/45221238 / https://bugs.swift.org/browse/SR-9220
rdar://problem/38913395 / https://bugs.swift.org/browse/SR-7283

Parsing collection literal expression used to take exponential time
depending on the nesting level of the first element.

Stop using 'parseList()' because using it complicates libSyntax parsing.

rdar://problem/45221238 / https://bugs.swift.org/browse/SR-9220
rdar://problem/38913395 / https://bugs.swift.org/browse/SR-7283
(cherry picked from commit 7f57ad9)
@rintaro rintaro requested a review from a team January 8, 2019 02:14
@akyrtzi akyrtzi merged commit 4db83a1 into swiftlang:swift-5.0-branch-12-12-2018 Jan 8, 2019
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.

2 participants