Use []byte byte slices as keys directly avoiding serialing string(s) (#46)

This commit is contained in:
James Mills
2019-08-08 07:59:11 +10:00
committed by GitHub
parent 5d1dd6657a
commit 3c1808cad3
13 changed files with 145 additions and 97 deletions

View File

@@ -6,7 +6,7 @@ import (
pb "github.com/prologic/bitcask/internal/proto"
)
func NewEntry(key string, value []byte) pb.Entry {
func NewEntry(key, value []byte) pb.Entry {
checksum := crc32.ChecksumIEEE(value)
return pb.Entry{