From: Joshua B. <JRB...@lb...> - 2005-12-16 19:21:46
|
I've mentioned this before, but I've been using 4Suite for performance. -josh from Ft.Xml.Domlette import NonvalidatingReaderBase, NonvalidatingReader class DomletteReader(NonvalidatingReaderBase): '''Used with ZSI.parse.ParsedSoap ''' fromString = NonvalidatingReaderBase.parseString fromStream = NonvalidatingReaderBase.parseStream On Dec 16, 2005, at 10:54 AM, Ivan R. Judson wrote: > > Someone here at ANL (Narayan Desai) suggested another alternative for > speedups. It was a swig'ed version of libxml2, but I forget the name. > > I'd suggest we have try/excepts around this and make it standard. The > toolkit will only benefit from being fast :-). > > --Ivan > >> -----Original Message----- >> From: pyw...@li... [mailto:pywebsvcs- >> talk- >> ad...@li...] On Behalf Of Thomas D. Uram >> Sent: Friday, December 16, 2005 12:00 PM >> To: pyw...@li... >> Subject: [Pywebsvcs-talk] ZSI performance with expatbuilder >> >> >> I was poking at ZSI performance last night, and based on this: >> >> http://mail.python.org/pipermail/xml-sig/2002-November/008722.html >> >> I replaced the current default parser (in ZSI/parse.py) >> >> xml.dom.ext.reader import PyExpat.Reader >> >> with a minidom-based one, defined like so: >> >> from xml.dom import expatbuilder >> class ExpatReaderClass: >> fromString = staticmethod(expatbuilder.parseString) >> fromStream = staticmethod(expatbuilder.parse) >> >> In my application, I'm seeing greater than an order of magnitude >> performance improvement consistently. I've tried it on OSX, >> Linux, and Windows, using current ZSI cvs code and PyXML 0.8.[34]. >> >> The ZSI tests succeed using this different reader class (in >> approximately >> half the time). >> >> I'll continue poking at this, but I'd be interested to hear the >> experiences of >> other people with the minidom-based parser (e.g. whether they see >> the same >> performance difference, whether there is somewhere brokenness, etc.). >> >> Tom >> >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through >> log >> files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD >> SPLUNK! >> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >> _______________________________________________ >> Pywebsvcs-talk mailing list >> Pyw...@li... >> https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Pywebsvcs-talk mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk |