[Home] [By Thread] [By Date] [Recent Entries]


>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

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member