Skip to content

[SwiftLexicalLookup] Add support for caching in result validation #81209

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MAJKFL
Copy link
Contributor

@MAJKFL MAJKFL commented Apr 30, 2025

This PR brings SwiftLexicalLookup caching to the validation algorithm.

Caching significantly improves sequential top-down lookup performance, especially for large files. After running a couple of tests, I observed speedup ranging from around 2x to over 4x for large files such as KeyPath.swift. The PR is related to this PR in the swift-syntax repository.

@MAJKFL
Copy link
Contributor Author

MAJKFL commented Apr 30, 2025

swiftlang/swift-syntax#3068

@swift-ci Please smoke test

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.

1 participant