From 8fa523b125135bbd6f7965798f7fd33f0cfbff26 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Mon, 31 Aug 2015 10:18:37 -0400 Subject: [PATCH] Use an optimized crc32 library which is faster --- crc32_field.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crc32_field.go b/crc32_field.go index f4fde18ad..5c2860790 100644 --- a/crc32_field.go +++ b/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.