Skip to content

Commit

Permalink
1.1.0 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Genius762 committed Nov 9, 2020
1 parent 868acf2 commit 91a9a1e
Show file tree
Hide file tree
Showing 6 changed files with 374 additions and 16 deletions.
1 change: 0 additions & 1 deletion Benchmark/Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
</ItemGroup>


</Project>
1 change: 0 additions & 1 deletion Benchmark/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class Program
static void Main()
{
BenchmarkRunner.Run<FastNewBenchmark>();

}
}
}
147 changes: 147 additions & 0 deletions FastGenericNew/ConstructorOf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,151 @@ public static class ConstructorOf<T, TParameter, TParameter2, TParameter3, TPara
typeof(TParameter9),
}, null);
}

public static class ConstructorOf<T, TParameter, TParameter2, TParameter3, TParameter4, TParameter5, TParameter6, TParameter7, TParameter8, TParameter9, TParameter10>
{
public static readonly ConstructorInfo value =
typeof(T).GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[]
{
typeof(TParameter),
typeof(TParameter2),
typeof(TParameter3),
typeof(TParameter4),
typeof(TParameter5),
typeof(TParameter6),
typeof(TParameter7),
typeof(TParameter8),
typeof(TParameter9),
typeof(TParameter10),
}, null);
}

public static class ConstructorOf<T, TParameter, TParameter2, TParameter3, TParameter4, TParameter5, TParameter6, TParameter7, TParameter8, TParameter9, TParameter10, TParameter11>
{
public static readonly ConstructorInfo value =
typeof(T).GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[]
{
typeof(TParameter),
typeof(TParameter2),
typeof(TParameter3),
typeof(TParameter4),
typeof(TParameter5),
typeof(TParameter6),
typeof(TParameter7),
typeof(TParameter8),
typeof(TParameter9),
typeof(TParameter10),
typeof(TParameter11),
}, null);
}

public static class ConstructorOf<T, TParameter, TParameter2, TParameter3, TParameter4, TParameter5, TParameter6, TParameter7, TParameter8, TParameter9, TParameter10, TParameter11, TParameter12>
{
public static readonly ConstructorInfo value =
typeof(T).GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[]
{
typeof(TParameter),
typeof(TParameter2),
typeof(TParameter3),
typeof(TParameter4),
typeof(TParameter5),
typeof(TParameter6),
typeof(TParameter7),
typeof(TParameter8),
typeof(TParameter9),
typeof(TParameter10),
typeof(TParameter11),
typeof(TParameter12),
}, null);
}

public static class ConstructorOf<T, TParameter, TParameter2, TParameter3, TParameter4, TParameter5, TParameter6, TParameter7, TParameter8, TParameter9, TParameter10, TParameter11, TParameter12, TParameter13>
{
public static readonly ConstructorInfo value =
typeof(T).GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[]
{
typeof(TParameter),
typeof(TParameter2),
typeof(TParameter3),
typeof(TParameter4),
typeof(TParameter5),
typeof(TParameter6),
typeof(TParameter7),
typeof(TParameter8),
typeof(TParameter9),
typeof(TParameter10),
typeof(TParameter11),
typeof(TParameter12),
typeof(TParameter13),
}, null);
}

public static class ConstructorOf<T, TParameter, TParameter2, TParameter3, TParameter4, TParameter5, TParameter6, TParameter7, TParameter8, TParameter9, TParameter10, TParameter11, TParameter12, TParameter13, TParameter14>
{
public static readonly ConstructorInfo value =
typeof(T).GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[]
{
typeof(TParameter),
typeof(TParameter2),
typeof(TParameter3),
typeof(TParameter4),
typeof(TParameter5),
typeof(TParameter6),
typeof(TParameter7),
typeof(TParameter8),
typeof(TParameter9),
typeof(TParameter10),
typeof(TParameter11),
typeof(TParameter12),
typeof(TParameter13),
typeof(TParameter14),
}, null);
}

public static class ConstructorOf<T, TParameter, TParameter2, TParameter3, TParameter4, TParameter5, TParameter6, TParameter7, TParameter8, TParameter9, TParameter10, TParameter11, TParameter12, TParameter13, TParameter14, TParameter15>
{
public static readonly ConstructorInfo value =
typeof(T).GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[]
{
typeof(TParameter),
typeof(TParameter2),
typeof(TParameter3),
typeof(TParameter4),
typeof(TParameter5),
typeof(TParameter6),
typeof(TParameter7),
typeof(TParameter8),
typeof(TParameter9),
typeof(TParameter10),
typeof(TParameter11),
typeof(TParameter12),
typeof(TParameter13),
typeof(TParameter14),
typeof(TParameter15),
}, null);
}

public static class ConstructorOf<T, TParameter, TParameter2, TParameter3, TParameter4, TParameter5, TParameter6, TParameter7, TParameter8, TParameter9, TParameter10, TParameter11, TParameter12, TParameter13, TParameter14, TParameter15, TParameter16>
{
public static readonly ConstructorInfo value =
typeof(T).GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[]
{
typeof(TParameter),
typeof(TParameter2),
typeof(TParameter3),
typeof(TParameter4),
typeof(TParameter5),
typeof(TParameter6),
typeof(TParameter7),
typeof(TParameter8),
typeof(TParameter9),
typeof(TParameter10),
typeof(TParameter11),
typeof(TParameter12),
typeof(TParameter13),
typeof(TParameter14),
typeof(TParameter15),
typeof(TParameter16),
}, null);
}
}
29 changes: 25 additions & 4 deletions FastGenericNew/FastGenericNew.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

<PropertyGroup>
<PackageId>Boring3.FastGenericNew</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>FastGenericNew is 10x times faster than new T()</Description>
<Authors>Boring3</Authors>
<RepositoryUrl>https://github.com/BThree496/FastGenericNew</RepositoryUrl>
<PackageProjectUrl>https://github.com/BThree496/FastGenericNew</PackageProjectUrl>
<PackageIcon>meaninglessLogo.png</PackageIcon>
<PackageTags>Performance, Generic, Fast, Expression, Optimization, DynamicMethod</PackageTags>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)'=='Debug'">

</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<Optimize>true</Optimize>
</PropertyGroup>

<ItemGroup>
<None Include="..\meaninglessLogo.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
Loading

0 comments on commit 91a9a1e

Please sign in to comment.