From: hammett <ha...@uo...> - 2004-10-29 15:41:33
|
Hello Deyan, I've spent an hour in optimization, but I think you wont benefit from it. The last optimization is to avoid instantiate the delegates, so, for each delegate generated we create a instance field and initialize if in the constructor. It made a hell of difference in my performance test Execution took 156 // interface proxy using reflection Execution took 110 Execution took 125 Execution took 125 Execution took 62 // class proxy Execution took 47 Execution took 47 Execution took 47 Deyan, I think one thing you can try before we step a little further is to compile everything to Release. In debug mode the DynamicProxy writes the assembly to the disk and no code optimization is applied by C# compiler too. I've noticed some time differences amongst Debug and Release compilation. If you still experiencing poor results, we'll go a step further creating delegates to an inner type. This will be a hack, thus I'd like to avoid it. but I also would like to see good results, so I'm willing to implement it if it's really necessary. -- Cheers, hammett http://www.digitalcraftsmen.com.br/~hammett ----- Original Message ----- From: "Deyan Petrov" <de...@ho...> To: <asp...@li...> Sent: Thursday, October 28, 2004 11:47 PM Subject: Re: [Aspectsharp-users] IInvocation.Proxy and IInvocation.InvocationTarget > Hi hammett, > > Ok, sorry, the correct link to the new source is: > > http://www20.brinkster.com/deyanp/dynproxy/DynamicProxyAvalonTest2.zip > > > Br, > Deyan > > > ----- Original Message ----- > From: "hammett" <ha...@uo...> > To: <asp...@li...> > Sent: Thursday, October 28, 2004 11:54 PM > Subject: Re: [Aspectsharp-users] IInvocation.Proxy and > IInvocation.InvocationTarget > > >> Hello Deyan, >> >> I'd like to see the code, but I'm having problems downloading the zip >> file >> now.. >> I'll check it again tonight. By now, I imagine some tweaks that we can > try. >> >> -- >> Cheers, >> hammett >> http://www.digitalcraftsmen.com.br/~hammett >> >> >> ----- Original Message ----- >> From: "Deyan Petrov" <de...@ho...> >> To: <asp...@li...> >> Sent: Thursday, October 28, 2004 8:48 AM >> Subject: Re: [Aspectsharp-users] IInvocation.Proxy and >> IInvocation.InvocationTarget >> >> >> >> >> >> ------------------------------------------------------- >> This Newsletter Sponsored by: Macrovision >> For reliable Linux application installations, use the industry's leading >> setup authoring tool, InstallShield X. Learn more and evaluate >> today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/ >> _______________________________________________ >> Aspectsharp-users mailing list >> Asp...@li... >> https://lists.sourceforge.net/lists/listinfo/aspectsharp-users >> > > > ------------------------------------------------------- > This Newsletter Sponsored by: Macrovision > For reliable Linux application installations, use the industry's leading > setup authoring tool, InstallShield X. Learn more and evaluate > today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/ > _______________________________________________ > Aspectsharp-users mailing list > Asp...@li... > https://lists.sourceforge.net/lists/listinfo/aspectsharp-users > |