Skip to content

[libSyntax] Reenable caching of token nodes #18684

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 1 commit into from
Aug 14, 2018

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 13, 2018

If we accept that two token nodes in the same syntax tree can have the same NodeId if they have the same content and trivia, we can enable caching of token nodes again.

As a side effect this will also speed up the transfer of a syntax tree to the client side since two tokens that are exactly the same will receive the same ID and thus will only be transferred once if incremental syntax tree transfer is enabled.

@ahoppen ahoppen requested a review from rintaro August 13, 2018 22:18
@ahoppen
Copy link
Member Author

ahoppen commented Aug 13, 2018

@swift-ci Please smoke test

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.

Thanks!

@ahoppen ahoppen merged commit 1529d65 into swiftlang:master Aug 14, 2018
@ahoppen ahoppen deleted the enable-cache-token-nodes branch August 14, 2018 16:24
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