Re: [IronPython] Why is IronPython so much slower to import modules when built as an exe then as a script?

2010-09-02 Thread Curt Hagenlocher
What if you NGEN the executable produced by pyc? JIT can make startup expensive, and you're probably getting the adaptive interpreter when running against ipy.exe. On Thu, Sep 2, 2010 at 10:03 AM, Doug Warren doug.war...@gmail.com wrote: That is the case, I made the change you suggested and it

Re: [IronPython] Why is IronPython so much slower to import modules when built as an exe then as a script?

2010-09-02 Thread Doug Warren
That did it, thank you. My ignorance at the .NET framework shows itself. with the test app it now executes at around 0.88 seconds vs the 1.6 for the script version. And I feel silly for spending some time adding a splash screen to the app as it just disappears in under a second. On Thu, Sep 2,

Re: [IronPython] Why is IronPython so much slower to import modules when built as an exe then as a script?

2010-09-01 Thread Dino Viehland
The only thing I can think of is if you're on a 64-bit OS then ipy.exe is a 32-bit EXE and the EXE you compiled is platform neutral - so it'll load on the 64-bit CLR. If that's the case you could use pyc.py with /platform:x86 and you should get the same behavior as ipy.exe. Other than that