Wikipedia dump file processing shoot out

Tyler Riddle <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
(sorry for the dup post tharter)

> Has anyone tried to identify WHY libxml/xslt running in perl is AT ALL
> slower than C? Obviously there is SOME going back and forth between perl and
> C there, but it kind of seems hideously more expensive than it should be.
>

I've been pondering this as well, here is my conclusions:

In general the reason the SAX interfaces between perl and C are so
much slower is simply the amount of overhead involved in a perl
subroutine invocation vs the overhead of a C function call. As for
XML::LibXML::SAX it's confusing for me as well considering it performs
so much more poorly than everything else yet XML::LibXML::Reader is
very very very fast. I've been meaning to create a libxml reader C
based test to see how much overhead there is vs the perl interface as
there isn't an apples to apples comparison yet possible there.

Tyler

--
If you wish to make an apple pie from scratch you must first invent
the universe. -- Carl Sagan



-- 
If you wish to make an apple pie from scratch you must first invent
the universe. -- Carl Sagan
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.