From 4e431f808bbf6e4b310f9a96391d10b5f4b494c1 Mon Sep 17 00:00:00 2001 From: Boring3 Date: Mon, 9 Nov 2020 18:15:31 +0800 Subject: [PATCH] README Update --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 69db508..3a32308 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,14 @@ FastGenericNew is 10x times faster than `Activator.CreateInstance()` / `new T()` ## Features ---- + - Parameters Supported - Non-Public Constructor Supported - Zero box/unbox - ValueType Supported ## Examples ---- + Fast create instance of `T`: ```cs @@ -25,7 +25,6 @@ FastNew.CreateInstance("parameter", 0); ``` ## Benchmark ---- ```ini @@ -45,7 +44,6 @@ AMD Ryzen 9 3900X, 1 CPU, 24 logical and 12 physical cores | NewT | 33.332 ns | 0.3524 ns | 0.3296 ns | 14.74 | 0.16 | No | 0.0029 | - | - | 24 B | 88 B | ## How it works ---- Not like `Activator.CreateInstance()`. FastGenericNew will dynamic compile a method that return `T`. And cache it up by generic.