Skip to content

Fix an infinite loop if a conflict marker is found but it's not at the start of a new line #2899

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

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Nov 19, 2024

Until I found the underlying issue, I was looking at performance issues with conflict marker lexing and was able to improve the parsing time of a file consisting of only conflict markers by 2x (not that it matters much in practice but doesn’t hurt either). That’s included in a second commit.

rdar://137746823

@ahoppen ahoppen requested a review from bnbarham as a code owner November 19, 2024 04:27
@ahoppen
Copy link
Member Author

ahoppen commented Nov 19, 2024

@swift-ci Please test

@ahoppen ahoppen requested review from rintaro and removed request for bnbarham November 19, 2024 04:27
Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@ahoppen ahoppen merged commit 7aed63b into swiftlang:main Nov 20, 2024
3 checks passed
@ahoppen ahoppen deleted the conflict-marker-infinite-loop branch November 20, 2024 20:50
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