зеркало из https://github.com/microsoft/Power-Fx.git
Don't create new DType instances for primitive FormulaType classes (#2188)
Small perf improvement: we don't need to create new DType instances for primitive types.
This commit is contained in:
Родитель
913a85e4bc
Коммит
73f509a00b
|
@ -12,7 +12,7 @@ namespace Microsoft.PowerFx.Types
|
|||
public class BlankType : FormulaType
|
||||
{
|
||||
internal BlankType()
|
||||
: base(new DType(DKind.ObjNull))
|
||||
: base(DType.ObjNull)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Microsoft.PowerFx.Types
|
|||
public class BooleanType : FormulaType
|
||||
{
|
||||
internal BooleanType()
|
||||
: base(new DType(DKind.Boolean))
|
||||
: base(DType.Boolean)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Microsoft.PowerFx.Types
|
|||
public class DecimalType : FormulaType
|
||||
{
|
||||
internal DecimalType()
|
||||
: base(new DType(DKind.Decimal))
|
||||
: base(DType.Decimal)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Microsoft.PowerFx.Types
|
|||
public class NumberType : FormulaType
|
||||
{
|
||||
internal NumberType()
|
||||
: base(new DType(DKind.Number))
|
||||
: base(DType.Number)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Microsoft.PowerFx.Types
|
|||
public class StringType : FormulaType
|
||||
{
|
||||
public StringType()
|
||||
: base(new DType(DKind.String))
|
||||
: base(DType.String)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче