OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Ambiguities in section 4.3.2 of XML 1.0 SE

[ Lists Home | Date Index | Thread Index ]

>The fact that it requires a 2-character lookahead, and that ']' is way
>the other end of the lower 128 characters from all the other special
>characters makes it a royal pain.  (By that I mean 'switch' statements
>tend to be compiled to much less efficient code, just because you added
>a case for that specific character.  I actually tried it with 2
>different compilers and the perf of the switch statement was completely
>foobared in both compilers, just by adding case ']'...)

Given that you're expending 50-100 instructions per input character,
and in many documents barely half the characters are text, I wouldn't
lose to much sleep over it.

-- Richard


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS