application MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2130710216=="
--===============2130710216== Content-Type: multipart/alternative; boundary=047d7b15ac57fa46ed04c0b6db0e --047d7b15ac57fa46ed04c0b6db0e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Dynamic is pretty slow as well since it involves reflection. What is the real type of the object you are returning, is it a function or something? You may want to save it off as a delegate instance instead of dynamic of that is the case. Sent from my Windows Phone From: Carles F. Juli=C3=A0 Sent: 5/23/2012 9:45 AM To: Jeff Hardy Cc: ironpython-users@python.org Subject: Re: [Ironpython-users] Poor performance of a c# - Ironpython application > > My guess is that it's .NET's JIT compiler. How do you execute the scripts= ? > Are you compiling them and caching the results or re-executing them each > time? > I compile the script once and then I save a python object in a dynamic variable on c#. Then I access the rest of the python code from there all the time. --047d7b15ac57fa46ed04c0b6db0e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html><head><meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Cont= ent-Type"></head><body><div><div style=3D"font-family: Calibri,sans-serif; = font-size: 11pt;">Dynamic is pretty slow as well since it involves reflecti= on. What is the real type of the object you are returning, is it a function= or something? You may want to save it off as a delegate instance instead o= f dynamic of that is the case.<br><br>Sent from my Windows Phone<br></div><= /div><hr><span style=3D"font-family: Tahoma,sans-serif; font-size: 10pt; fo= nt-weight: bold;">From: </span><span style=3D"font-family: Tahoma,sans-seri= f; font-size: 10pt;">Carles F. Juli=C3=A0</span><br><span style=3D"font-fam= ily: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">Sent: </span><= span style=3D"font-family: Tahoma,sans-serif; font-size: 10pt;">5/23/2012 9= :45 AM</span><br><span style=3D"font-family: Tahoma,sans-serif; font-size: = 10pt; font-weight: bold;">To: </span><span style=3D"font-family: Tahoma,san= s-serif; font-size: 10pt;">Jeff Hardy</span><br><span style=3D"font-family:= Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">Cc: </span><span s= tyle=3D"font-family: Tahoma,sans-serif; font-size: 10pt;">ironpython-users@= python.org</span><br><span style=3D"font-family: Tahoma,sans-serif; font-si= ze: 10pt; font-weight: bold;">Subject: </span><span style=3D"font-family: T= ahoma,sans-serif; font-size: 10pt;">Re: [Ironpython-users] Poor performance= of a c# - Ironpython application</span><br><br></body></html><div class=3D= "gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;= border-left:1px #ccc solid;padding-left:1ex"><div class=3D"gmail_quote">My = guess is that it's .NET's JIT compiler. How do you execute the scri= pts? Are you compiling them and caching the results or re-executing them ea= ch time?<span class=3D"HOEnZb"></span></div> </blockquote></div><br>I compile the script once and then I save a python o= bject in a dynamic variable on c#. Then I access the rest of the python cod= e from there all the time.<br> --047d7b15ac57fa46ed04c0b6db0e-- --===============2130710216== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users --===============2130710216==-- _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users