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

@ChrisBenua
Copy link
Author

@hmlongco Michael, please, can you take a look on this PR? It should significantly improve globalIdentifier function performance. Thanks in advance!

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