Dirk Meyer wrote: > Jason Tackaberry wrote: >> On Mon, 2007-02-26 at 11:14 +0100, Benjamin Zores wrote: >>> That would be good from GeeXboX point of view (one big dependency >>> less) but from what i could remember, Tack told me libxmlé was >>> introduced cause 100x faster than python xml. If it takes 2hours to >>> parse xmltv fils with python xml than it might worth fixing libxml2 >>> instead. >> >> It's true that when I rewrote the EPG parser to use libxml2 it was _way_ >> faster (70 minutes down to 90 seconds). But it wasn't just libxml2 I >> changed, it was also the core logic and the use of sqlite. > > OK, my test fail. I stopped the test using minidom after 5 seconds > because the test was using about 600 MB RAM (and growing) while I only > have 512 MB. So minidom does not work. The SAX parser needs to parse > the defined dtd I don't have (for epgdata.com this is what I need). [...] > So maybe use cElementTree. I never tried that.
Tried it on your huge xmltv file. libxml2 1.71 seconds cElementTree 4,74 seconds ElementTree 42,77 seconds IMHO cElementTree looks good. But like libxml2 it does not load the dtd and it fails on all enties for epgdata.com. But a sax parser should work in that case. Dischi -- die_if_kernel("Kernel gets FloatingPenguinUnit disabled trap", regs); 2.2.16 /usr/src/linux/arch/sparc/kernel/traps.c
pgpM381cAfEKx.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel