Re: [IronPython] Performances and Profiling of ReportLab under IronPython

2009-08-20 Thread Dino Viehland
To: users@lists.ironpython.com Subject: Re: [IronPython] Performances and Profiling of ReportLab under IronPython Curt, thanks for tip: it's ok. That's the code: __pySearchPaths = new List(Properties.Settings.Default.PySearchPaths.Split(';')); __

Re: [IronPython] Performances and Profiling of ReportLab under IronPython

2009-08-20 Thread Marco Parenzan
ope); About startup time: yes, the first five lines takes 10/11 seconds! With your tip I have solved my problem, but I don't understand the difference between IPY and CPython (1 seconds from start to end). Marco -Original Message- Date: Thu, 20 Aug 2009 07:43:08 -0700 From: Curt H

Re: [IronPython] Performances and Profiling of ReportLab under IronPython

2009-08-20 Thread Curt Hagenlocher
Imports are specific to a ScriptEngine. When you create a new ScriptScope through the hosting interface and run "import foo" inside of it, the standard Python behavior applies -- if "foo" is already in sys.modules, it won't be imported again. Instead, the name will just be added to the current scop

Re: [IronPython] Performances and Profiling of ReportLab under IronPython

2009-08-20 Thread Marco Parenzan
Other results. I have hosted IPY in a test C# application in which I separate ScriptScope creation from execution: specifically, I create scope one time, import modules, and then execute, 100 times. Timings are ok: Python Startup Elapsed time: 10595 Execution 0 Elapsed time: 1454ms Execu

Re: [IronPython] Performances and Profiling of ReportLab under IronPython

2009-08-20 Thread Marco Parenzan
Boys I have a news. Executing code interactive, I have an important result: - Launching IPY: 3seconds - from reportlab.graphics.shapes import Drawing, String: ¾ seconds - renderPDF.drawToFile(d, "C:\users\marco.parenzan\desktop\uuu.pdf", "HellO"): 1 second!

[IronPython] Performances and Profiling of ReportLab under IronPython

2009-08-20 Thread Marco Parenzan
Dear All, I downloaded IPY2.6beta2 to test this script: from reportlab.graphics.shapes import Drawing, String from reportlab.graphics import renderPDF d = Drawing(100, 100) s = String(50, 50, "Hello World", textAlign='middle') d.add(s) renderPDF.drawToFile(d, "HelloWorld.pdf",