From: Steve B. <Ste...@zv...> - 2002-08-26 09:11:17
|
Dear Yogesh, You wrote: > I have some doubts regarding TclDOM parsing. > I am parsing using TclDom, i am able to parse but not satisfied with the > performance > when it comes to the speed. I am reading from one xml document and parsing > the other > xml document. This job when i did using VB and MSXML parser, it is quite > fast as compared > to using TclDOM. It is nearly 8 times slower. It took 45 seconds to parse > read three entried > from the first xml document and parse the other one. The Tcl implementation of TclDOM (and TclXML, the package that actually does the parsing) is naturally quite slow. MSXML is implemented in C++. There is now a version of TclDOM that uses libxml2. libxml2 is written in C and is *very* fast. By comparison, I ran some simple tests over the weekend and TclDOM/libxml2 is more than 20 times faster than TclDOM/tcl (and by inference is faster than MSXML). It would appear that you are using MS Windows. I'm cc'ing this message to the tclxml-users mailing list in case anyone has built TclDOM/libxml2 for Windows and might be willing to share it. Other alternatives are TclDOMPro (part of the TclDOM distribution) or tDOM (different API). 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 |