소스 검색

Use an optimized crc32 library which is faster

Evan Huus 10 년 전
부모
커밋
8fa523b125
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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.