Skip to content

Typename resolving optimized#347

Open
ChrisBenua wants to merge 1 commit intohmlongco:mainfrom
ChrisBenua:optimize-typename-calculation
Open

Typename resolving optimized#347
ChrisBenua wants to merge 1 commit intohmlongco:mainfrom
ChrisBenua:optimize-typename-calculation

Conversation

@ChrisBenua
Copy link

There is no need to use heavy String(reflecting:), there is much faster alternative.

But internally, String(reflecting:) called on class-type eventually calls _typeName(:qualified:) function with qualified: true.

Full call-stack:

@hmlongco Michael, I'd love your suggestions on how to edit comments for globalIdentifier function.

@ChrisBenua
Copy link
Author

The same optimization I made here: swiftlang/swift#77369

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