Skip to content

Commit 3047f29

Browse files
committed
Mention the unrolled loops can be cleaned up in the future
1 parent 3db4c88 commit 3047f29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xor.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ func fastXOR(key [4]byte, keyPos int, b []byte) int {
2525
}
2626
k := binary.LittleEndian.Uint64(alignedKey[:])
2727

28+
// At some point in the future we can clean these unrolled loops up.
29+
// See https://github.com/golang/go/issues/31586#issuecomment-487436401
30+
2831
// Then we xor until b is less than 128 bytes.
2932
for len(b) >= 128 {
3033
v := binary.LittleEndian.Uint64(b)

0 commit comments

Comments
 (0)