Fast Invoker v 1.0

Rating:        Based on 1 rating
Reviewed:  1 review
Downloads: 184
Released: Dec 24, 2008
Updated: Dec 24, 2008 by HFadeel
Dev status: Stable Help Icon

Recommended Download

Source Code Fast Invoker Source Code
source code, 44K, uploaded Dec 24, 2008 - 184 downloads

Release Notes

This version 1.0 of Fast Invoker that provide very fast and dynamic methods invoke, Properties and Field Accessor.
It's stable.

How it work:
I Emit/Write IL code at runtime to invoke the method, access the property/field and this make it fast
instead of using .NET Refraction framework. and it's faster than many other Invoker frameworks becuase
I Emit/Write Generic IL code.


The benchmark:
Invoke Method (1,000,000 Invoke)
Native Static : 0ms
MethodInvoker : 3ms
.NET Reflection : 812ms

Access Property (1,000,000 Read, Write)
Native Static : 20ms
PropertyAccessor : 46ms
.NET Reflection : 1984ms

Access Field (1,000,000 Read, Write)
Native Static : 12ms
FieldAccessor : 15ms
.NET Reflection : 562ms

Haytham El-Fadeel - http://www.HFadeel.com/Blog


Example:
X ss = new X();
FastInvoker.MethodInvoker<X> method = new FastInvoker.MethodInvoker<X>("Method");
method.Invoke(ss, null);

...

class X
{
public string o;

public string oo { get; set; }

public void Method()
{

}
}

Reviews for this release

     
i admir the idea and this greate code it works :) Thanks
by Mustafamg on Dec 24, 2008 at 10:02 PM