Reduce EDLBootNotificationManager allocations during early editor startup

#rb matt.peters

[CL 15987949 by Johan Torp in ue5-main branch]
This commit is contained in:
Johan Torp
2021-04-13 07:38:30 -04:00
parent 4ab663726f
commit 05d8fbeea3

View File

@@ -151,9 +151,12 @@ struct FEDLBootNotificationManager
return; // We assume nothing in coreuobject ever loads assets in a constructor
}
FScopeLock Lock(&EDLBootNotificationManagerLock);
TStringBuilder<256> LongNameBuilder;
LongNameBuilder << PackageName;
FPathViews::Append(LongNameBuilder, Name);
FName LongFName(LongNameBuilder.ToView());
FName LongFName(*(FString(PackageName) / Name));
FScopeLock Lock(&EDLBootNotificationManagerLock);
//FPlatformMisc::LowLevelOutputDebugStringf(TEXT("NotifyRegistrationEvent %s %d %d\r\n"), *LongFName.ToString(), int32(NotifyRegistrationType), int32(NotifyRegistrationPhase));