Explorar o código

Use an optimized crc32 library which is faster

Evan Huus %!s(int64=10) %!d(string=hai) anos
pai
achega
8fa523b125
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      crc32_field.go

+ 2 - 1
crc32_field.go

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