Skip to content

[6.0][Caching] Don't rely on FileSystem when replaying diagnostics #74099

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

Conversation

cachemeifyoucan
Copy link
Contributor

Explanation: Stop relying on file system to provide source buffer for diagnostics when replying. This avoids initializing CASFS which is quite expensive. Now cached diagnostics contains CASID for the file buffer so it can initialize its own source manager without relying on the underlying file system.
Scope: This allows faster swift caching replay especially with path remapping enabled.
Original PR: #73822
Issue: rdar://128423393
Risk: Low. Swift Caching only change.
Reviewer: @benlangmuir

Stop relying on file system to provide source buffer for diagnostics
when replying. This avoids initializing CASFS which is quite expensive.
Now cached diagnostics contains CASID for the file buffer so it can
initialize its own source manager without relying on the underlying file
system.

rdar://128423393
(cherry picked from commit c132f74)
@cachemeifyoucan cachemeifyoucan requested a review from a team as a code owner June 3, 2024 17:04
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan changed the title [Caching] Don't rely on FileSystem when replaying diagnostics [6.0][Caching] Don't rely on FileSystem when replaying diagnostics Jun 3, 2024
@cachemeifyoucan cachemeifyoucan merged commit 04d082c into swiftlang:release/6.0 Jun 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants