[
Lists Home |
Date Index |
Thread Index
]
Rich Salz wrote:
>> Only benchmarking/profiling can tell
>
>
> It's hard to beat this:
Not that hard I'd say given that an XML processor has to recognize
'quot' and 'apos' and 'gt'.
> if ((*buff++ = *src++) == '&')
> {
switch *buff
{
case 'a':
// nother if here
case 'q':
// insert code
case 'l':
// insert code
case 'g':
// insert code
}
|