Chris Gahan [mailto:[EMAIL PROTECTED] wrote: > > On 12 Aug 2004, Geoffrey Talvola said: > > > WebFormKit is a Webware's plug-in that helps programmers to develop > > Web based application.
[...] > Wow, this looks really handy! I'd be peeing my pants if it weren't for > one problem: it can be really slow. When your code manipulates the page- > DOM, it crawls. The MultiplicationTable demo with a 10x200 table (which > is small!) took 3.45 seconds to render on my P4-2.6ghz w/ dual-channel > PC-400mhz DDR-SDRAM. Luxury! ;-) [...] > Just out of curiousity, why is manipulating an XML-based DOM so slow? The > thing is just a hierarchy of dynamic objects, isn't it? Those should be > fast... :\ In my experience, even the fastest Python DOMs can be quite slow when applied to templating exercises. My solution was to switch to XSLT, using libxslt, and to employ libxml2 together with a PyXML-style wrapper (libxml2dom - see PyPI for details) for when I wanted to edit the data being presented. This was a fairly XML-centric way of working, however. The biggest disadvantage with libxslt is the way it handles errors, just stopping and giving up when it detects an error, leaving you with a partially constructed but still well-formed document and not much idea of what went wrong. The second biggest disadvantage is the restriction that parameters to stylesheets must be strings (and not other documents), although there are some workarounds. The biggest advantage is that it is very quick indeed. Paul ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
