Jason Tackaberry wrote:
> On Mon, 2007-02-26 at 15:30 +0100, Dirk Meyer wrote:
>> 1. Use minidom for the cxml stuff. It may be slower, but we don't want
>>    an extra dependency jsut to be able to install a module.
>
> What about expat?  It should be much faster than minidom, and it's in
> stock python.
>
> Would be interesting to compare expat with libxml2.

Creatinf a simple tree without navigating functions just with
.children and .content takes 18 seconds and uses about 210 MB RAM with
your file. From my other mail:

| Tried it on your huge xmltv file.
| libxml2        1.71 seconds
| cElementTree   4,74 seconds
| ElementTree   42,77 seconds

so it is slower by factor 10 compared to libxml2. But it still fits
into the memory. I'm not sure what to use, maybe different parser for
different sources. For epgdata.com I would like to merge Tanja's first
epgdata.com -> xmltv script using SAX into kaa.epg because it handles
the entities in the DTD and the files aren't that big because the
source has different files for each day. Other parser like xmltv could
use libxml2 or cElementTree as parser and have this is extra
dependency.

Anyway, I would like to remove kaa.epg as wrapper sooner or later. It
is more an ugly hack than a real solution. If someone wants to use
libxml2 he has to deal with it directly without me writing a wrapper
that thinks it is smart.


Dischi

-- 
One advantage of talking to yourself is that you know at least somebody's
listening.
                -- Franklin P. Jones

Attachment: pgpPZUqgAH0Gq.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

Reply via email to