Next in thread → Next in month →

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

From
Richard Tobin <>
To
Date
2003-08-12T16:47:34Z
ID
<>
Thread
Re: [xml-dev] Ambiguities in section 4.3.2 of XML 1.0 SE
>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
Next in thread → Next in month →