half-baked parsers vs binary XML

Tim Bray tbray at textuality.com
Sun Mar 28 20:45:22 BST 1999


At 07:27 PM 3/27/99 -0800, Gabe Beged-Dov wrote:
>XML::Parser is layered on expat. Anecdotal evidence seems to be that there is an order of
>magnitude performance advantage to "parsing" something other than XML. The two alternatives
>are a textual format that Perl can eval directly (Data::Dumper) and a binary format
>(Storable).

That's because there is some breakage in the design of the expat/perl linkage.
In my tests, given a file of  a couple of meg, perl can read it in under
a second, xmlwf (i.e. raw expat) in an almost unmeasurably-short time, and
XML::Parser takes 10 seconds plus.  This is just a bug and will be fixed.
 -Tim

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list