Optimize TypeInfo.GetFullNameNative for simple types

This commit is contained in:
Wojtek Figat
2023-03-22 14:12:25 +01:00
parent 3bbc7faf11
commit c31e4023c4

View File

@@ -150,6 +150,10 @@ namespace Flax.Build.Bindings
if (type == null)
return ToString();
// Optimization for simple type
if (!IsConst && GenericArgs == null && !IsPtr && !IsRef)
return type.FullNameNative;
var sb = new StringBuilder(64);
if (IsConst)
sb.Append("const ");