Explorar el Código

Merge pull request #527 from Shopify/crc32-optimization

Use an optimized crc32 library which is faster
Evan Huus hace 9 años
padre
commit
2d4c75a50b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      crc32_field.go

+ 2 - 1
crc32_field.go

@@ -2,7 +2,8 @@ package sarama
 
 import (
 	"encoding/binary"
-	"hash/crc32"
+
+	"github.com/klauspost/crc32"
 )
 
 // crc32Field implements the pushEncoder and pushDecoder interfaces for calculating CRC32s.