Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Factory/Factory/Key.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private func globalIdentifier(for type: Any.Type) -> ObjectIdentifier {
return knownID
}
// this is what we're bypassing. extremely slow runtime function.
let name = String(reflecting: type)
let name = _typeName(type, qualified: true)
// magic happens here, if name is already known then get original key for it
let id = globalNameToIdentifierTable[name, default: requestedTypeID]
// and save it so we don't have to do this again
Expand Down
2 changes: 1 addition & 1 deletion Sources/FactoryKit/FactoryKit/Key.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private func globalIdentifier(for type: Any.Type) -> ObjectIdentifier {
return knownID
}
// this is what we're bypassing. extremely slow runtime function.
let name = String(reflecting: type)
let name = _typeName(type, qualified: true)
// magic happens here, if name is already known then get original key for it
let id = globalNameToIdentifierTable[name, default: requestedTypeID]
// and save it so we don't have to do this again
Expand Down