Re: XSLT speed comparisons

2006-10-01 Thread pyscripter
Jordan wrote: > If your using python 2.4.3 or essentially any of the 2.3, 2.4 series, > i'd test out PyScripter as an IDE, it's one of the best that I've used. > Unfortunately, they have yet to fully accomedate 2.5 code (you can > still write 2.5 code with almost no problems, but you won't be abl

Re: XSLT speed comparisons

2006-09-29 Thread Jordan
If your using python 2.4.3 or essentially any of the 2.3, 2.4 series, i'd test out PyScripter as an IDE, it's one of the best that I've used. Unfortunately, they have yet to fully accomedate 2.5 code (you can still write 2.5 code with almost no problems, but you won't be able to use a 2.5 interact

Re: XSLT speed comparisons

2006-09-29 Thread Jordan
If your using python 2.4.3 or essentially any of the 2.3, 2.4 series, i'd test out PyScripter as an IDE, it's one of the best that I've used. Unfortunately, they have yet to fully accomedate 2.5 code (you can still write 2.5 code with almost no problems, but you won't be able to use a 2.5 interact

Re: XSLT speed comparisons

2006-09-29 Thread uche . ogbuji
[EMAIL PROTECTED] wrote: > For what it's worth I just developed, and switched to WSGI middleware > that only does the transform on the server side if the client doesn't > understand XSLT. It's called applyxslt and is part of wsgi.xml [1]. > That reduces server load, and with caching (via Myghty),

Re: XSLT speed comparisons

2006-09-29 Thread uche . ogbuji
Ross Ridge wrote: > Damian wrote: > It could just be that 4suite is slower than MSXML. If so, you can use > MSXML in Python if you want. You'll need to install the Python for > Windows extensions. Something like this: > > from os import environ > import win32com.client > > def

Re: XSLT speed comparisons

2006-09-29 Thread uche . ogbuji
Damian wrote: > Hi, I'm from an ASP.NET background an am considering making the switch > to Python. I decided to develop my next project in tandem to test the > waters and everything is working well, loving the language, etc. > > What I've got is: > two websites, one in ASP.NET v2 and one in Python

Re: XSLT speed comparisons

2006-09-28 Thread Josh Bloom
Hey Damian, I suggest you take a look at http://mmm-experts.com/Products.aspx?ProductId=4 which is a nice open source Python IDE for windows. After you've installed the version from that page, you should go to http://groups.google.com/group/PyScripter?lnk=oa and get the more recent unofficial rele

Re: XSLT speed comparisons

2006-09-28 Thread Damian
A, thanks for that, I've been searching the documentation and it only briefly mentions XSLT but it sounds like a half-arsed attempt. -- http://mail.python.org/mailman/listinfo/python-list

Re: XSLT speed comparisons

2006-09-28 Thread Damian
Sorry about the multiple posts folks. I suspect it was the "FasterFox" FireFox extension I installed yesterday tricking me. I had a brief look at libxml(?) on my Ubuntu machine but haven't run it on the server. I'll look into pyrxp Larry. I have to say I'm struggling a little with the discoverab

Re: XSLT speed comparisons

2006-09-28 Thread Fredrik Lundh
Jan Dries wrote: >> For max speed you might want to try pyrxp: >> >> http://www.reportlab.org/pyrxp.html > > Except that pyrxp, to the best of my knowledge, is an XML parser and > doesn't support XSLT, which is a requirement for Damian. and last time I checked, both cElementTree and libxml2 (lx

Re: XSLT speed comparisons

2006-09-28 Thread Larry Bates
Jan Dries wrote: > Larry Bates wrote: >> Damian wrote: > [...] >> > What I've got is: >> > two websites, one in ASP.NET v2 and one in Python 2.5 (using 4suite for >> > XML/XSLT) >> > both on the same box (Windows Server 2003) >> > both using the same XML, XSLT, CSS >> > >> > The problem is, the Pyt

Re: XSLT speed comparisons

2006-09-28 Thread Jan Dries
Larry Bates wrote: > Damian wrote: [...] > > What I've got is: > > two websites, one in ASP.NET v2 and one in Python 2.5 (using 4suite for > > XML/XSLT) > > both on the same box (Windows Server 2003) > > both using the same XML, XSLT, CSS > > > > The problem is, the Python version is (at a guess) a

Re: XSLT speed comparisons

2006-09-28 Thread Istvan Albert
Microsoft has put a lot of effort into their XML libraries as they are (or will be) the foundation of most of their software suites. I think you'll be hard pressed to find a library that exceeds it in both breadth of functionality and performance. Istvan -- http://mail.python.org/mailman/listin

Re: XSLT speed comparisons

2006-09-28 Thread Larry Bates
Damian wrote: > Hi, I'm from an ASP.NET background an am considering making the switch > to Python. I decided to develop my next project in tandem to test the > waters and everything is working well, loving the language, etc. > > What I've got is: > two websites, one in ASP.NET v2 and one in Pytho

Re: XSLT speed comparisons

2006-09-28 Thread Damian
Sorted! I installed msxml4 and then struggled for an hour or so with an encoding error (UnicodeEncodeError: 'ascii' codec etc) which was fixed by altering your code from: return proc.output --> return proc.output.encode('utf-8') The performance of MSXML over 4suite is substantial. 4suite: ht

Re: XSLT speed comparisons

2006-09-27 Thread Damian
Ross Ridge wrote: > Hmm... it seems that you don't have MSXML 4.0 installed on your > machine. I missed the fact that you're using ASP.NET, so your ASP code > probably is probably using the .NET XML implementation instead of > MSXML. In that case, another alternative might be to use IronPython >

Re: XSLT speed comparisons

2006-09-27 Thread Fredrik Lundh
Ross Ridge wrote: >> The problem is, the Python version is (at a guess) about three times >> slower than the ASP one. > > It could just be that 4suite is slower than MSXML. If so, you can use > MSXML in Python if you want. or use lxml: http://codespeak.net/lxml/ (does anyone have any lx

Re: XSLT speed comparisons

2006-09-27 Thread Damian
Ross Ridge wrote: > Hmm... it seems that you don't have MSXML 4.0 installed on your > machine. I missed the fact that you're using ASP.NET, so your ASP code > probably is probably using the .NET XML implementation instead of > MSXML. In that case, another alternative might be to use IronPython >

Re: XSLT speed comparisons

2006-09-27 Thread Ross Ridge
Damian wrote: > The errors can be seen at http://python.pointy.co.nz/test (I'm leaving > the existing, slower version running at the moment for the rest of the > site). Hmm... it seems that you don't have MSXML 4.0 installed on your machine. I missed the fact that you're using ASP.NET, so your AS

Re: XSLT speed comparisons

2006-09-27 Thread Damian
Ross Ridge wrote: > It could just be that 4suite is slower than MSXML. If so, you can use > MSXML in Python if you want. You'll need to install the Python for > Windows extensions. Something like this: Thanks for that Ross. That would make sense, I'd read somewhere that the 4suite code was a li

Re: XSLT speed comparisons

2006-09-27 Thread Ross Ridge
Damian wrote: > two websites, one in ASP.NET v2 and one in Python 2.5 (using 4suite for > XML/XSLT) > both on the same box (Windows Server 2003) > both using the same XML, XSLT, CSS > > The problem is, the Python version is (at a guess) about three times > slower than the ASP one. It could just be

XSLT speed comparisons

2006-09-27 Thread Damian
Hi, I'm from an ASP.NET background an am considering making the switch to Python. I decided to develop my next project in tandem to test the waters and everything is working well, loving the language, etc. What I've got is: two websites, one in ASP.NET v2 and one in Python 2.5 (using 4suite for XM