3 ms·
XML actually is parsed with assembly code, now, using vector instructions that split up bytes, bits 0 of 128 or more bytes in XMM0, bits 1 of the same bytes in
by ncmncm 7y ago
XML actually is parsed with assembly code, now, using vector instructions that split up bytes, bits 0 of 128 or more bytes in XMM0, bits 1 of the same bytes in XMM1, et al., and doing bitwise operations on the registers to recognize features.
Imagine how bad it would be if not!
- pedagand 7y agoThat's interesting: would you happen to have any reference implementing/describing such a parser, by any chance? In the crypto world, this is called "bitslicing": https://www.bearssl.org/constanttime.html#bitslicing https://www.bearssl.org/constanttime.html#bitslicing