From: Steve B. <Ste...@zv...> - 2002-12-11 21:54:48
|
Mischa Diehm wrote: > I was very happy to find the TclXml package with it's nice > features. I have to parse XML and get the structure back in a > tclList for further processing. I used callbacks to get the job done > and it worked perfectly well. But if I get big XML-Structures (like over > one MByte) the parsing takes way too much time. After checking the > documentation and trying to get my calls lighter ( as far as my knowledge > goes ) > and some checks on what causes the speed loss I realized that it is due to > the > parser itself. That's perfectly understandable if you were using the Tcl implementation of the parser. However, TclXML already has a wrapper for Expat - did you try that? > I wrote a little package xml2tcl in C using the C-expat-1.95.0 > implementation. > On a PIII with 863Mhz I can now parse about 6 MByte/Sec which is fast > enaugh > for my use. Is there any interest for this here and where can I put the > source or > the shared lib? As I said, TclXML already has a wrapper for Expat - a very old version heavily modified by Ajuba. It would be very helpful to update the TclXML/expat code to use the version that's now on SourceForge (as I recall that is the expat-1.95.0 version that you mention). Submit the patches on the TclXML SF site and I will incorporate them. If you are willing to be responsible for ongoing maintenance then I'll add you as a developer to the project. Cheers, Steve Ball -- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Ste...@zv... +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 |