From: hammett <ha...@uo...> - 2004-10-23 20:08:50
|
Testing with delegates (using the DynamicInvoke method) = 10000 * 2 executions Took 125 ms Testing the Deyan's suggestion = 10000 * 2 executions Took 47 ms Before any further step I blame the DynamicInvoke :-). A better strategy will be 1. DynamicProxy generate each delegate (and the proper invoke) and make this class implements a Callable interface. 2. The Callable's call method invokes the delegate itself (without DynamicInvoke) AFAIK this can't be done with C# directly, so it relies on my _feeling_ that it'll have a much better performance. I plan to work more on this tomorrow, have to work on a few websites first :-\ -- Cheers, hammett http://www.digitalcraftsmen.com.br/~hammett |