Skip to content

Add cache for USRBasedTypeContext::typeRelation #77322

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 1, 2024

Conversation

hamishknight
Copy link
Contributor

This brings the time taken for the cached completion:

import SwiftUI

Table(#^CC^#

down from ~400ms to ~190ms.

Use a worklist instead, and bump the size of the
inline set storage. This shaves ~30ms off the
time it takes to do this cached completion:

```
import SwiftUI

Table(#^CC^#
```
This brings the time taken for the cached completion:

```
import SwiftUI

Table(#^CC^#
```

down from ~400ms to ~190ms.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Nice.

@hamishknight
Copy link
Contributor Author

@swift-ci please test Windows

@hamishknight
Copy link
Contributor Author

@swift-ci please smoke test macOS

@hamishknight
Copy link
Contributor Author

@swift-ci please test Windows

@hamishknight hamishknight merged commit 11e8df0 into swiftlang:main Nov 1, 2024
4 of 5 checks passed
@hamishknight hamishknight deleted the complete-cache branch November 1, 2024 13:21
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