Skip to content

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

…sing `evictEntriesWithoutHit` call after lookup.
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