Skip to content

Cache fully-qualified type name components derived from strings.#1624

Merged
grynspan merged 1 commit intomainfrom
jgrynspan/typeinfo-cache-split-strings
Mar 10, 2026
Merged

Cache fully-qualified type name components derived from strings.#1624
grynspan merged 1 commit intomainfrom
jgrynspan/typeinfo-cache-split-strings

Conversation

@grynspan
Copy link
Contributor

This PR augments the cache used in TypeInfo to also cache split fully-qualified name strings. This improves overall performance as Xcode spends a fair amount of time looking up instances of TypeInfo this way.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR augments the cache used in `TypeInfo` to also cache split
fully-qualified name strings. This improves overall performance as Xcode spends
a fair amount of time looking up instances of `TypeInfo` this way.
@grynspan grynspan added this to the Swift 6.4.0 (main) milestone Mar 10, 2026
@grynspan grynspan self-assigned this Mar 10, 2026
@grynspan grynspan added tools integration 🛠️ Integration of swift-testing into tools/IDEs performance 🏎️ Performance issues issue-handling Related to Issue handling within the testing library labels Mar 10, 2026
@grynspan grynspan merged commit 3adf6d6 into main Mar 10, 2026
27 checks passed
@grynspan grynspan deleted the jgrynspan/typeinfo-cache-split-strings branch March 10, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

issue-handling Related to Issue handling within the testing library performance 🏎️ Performance issues tools integration 🛠️ Integration of swift-testing into tools/IDEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants