[IronPython] Performance Issue

Dino Viehland dinov at microsoft.com
Wed Nov 12 19:01:18 CET 2008

Instead of doing:

            ScriptScope scope = engine.CreateScope();



and your code should then run in an optimized default scope for the code - just like it does at the command line.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Wilfredo Lugo
Sent: Wednesday, November 12, 2008 9:29 AM
To: users at lists.ironpython.com
Subject: Re: [IronPython] Performance Issue

I run the script directly from ipy.exe and it basically behaves pretty similar to python.exe (it always took one second more, but I could live with that).  Here is the output:

$ date +%M:%S;./ipy.exe interpolate.py;date +%M:%S
WARNING: desired starting time (Tue Jan 01 00:00:21 2008) prior to time of first
 data point (Tue Jan 01 00:00:32 2008), current line: 9411
 series: 3D
force==False, exiting..

So, the problem is on the DLR side.  Any clues?

How does python.exe compare directly to ipy.exe?  That is, try running "date +%M:%S;ipy.exe interpolate.py;date +%M:%S" instead of using the DLR hosting APIs.



From: users-bounces at lists.ironpython.com<http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> [mailto:users-bounces at lists.ironpython.com<http://lists.ironpython.com/listinfo.cgi/users-ironpython.com>] On Behalf Of Wilfredo Lugo

Sent: Wednesday, November 12, 2008 8:32 AM

To: users at lists.ironpython.com<http://lists.ironpython.com/listinfo.cgi/users-ironpython.com>

Subject: [IronPython] Performance Issue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20081112/73bc93d0/attachment.html>

More information about the Ironpython-users mailing list