Validation and Parser Bloat (was: Re: parsers for Palm?)

David Megginson david at megginson.com
Tue Jun 29 20:32:17 BST 1999


Tim Bray writes:

 > Distinguish between <!DOCTYPE > and validation.  I do *not* agree
 > that parsing DTD syntax takes up 2/3 of a parser.  On the other hand,
 > it's reasonable to expect a validating parser to be twice the size
 > of a non-validating one.  Note that nearly all the existing 
 > validating parsers parse DTD syntax just fine. -T.

>From my hazy recollection, parsing everything inside <!DOCTYPE> added
about 10% to AElfred's size, and that included keeping information
from the declarations (but not validation per se).  The biggest size
bloat -- at least 30% -- came from having to work around inefficient
Java library classes by adding custom buffering and hash-table
routines.


All the best,


David

-- 
David Megginson                 david at megginson.com
           http://www.megginson.com/

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