Open
Description
The discussion at #31586 includes several techniques for optimizing xor of byte slices, including using encoding/binary (with native endianness) and loop unrolling. It'd be nice to apply them to safeXORBytes
, which is used on many non-amd64 platforms. An optimized safeXORBytes
might even be fast enough that we could delete fastXORBytes
.
Somewhat related: #30553
cc @nhooyr