Skip to content

Commit

Permalink
perf: remove unnecessary reader fn slots
Browse files Browse the repository at this point in the history
  • Loading branch information
rueian committed Feb 4, 2024
1 parent 0bee396 commit 36ca722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resp.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var typeNames = make(map[byte]string, 16)

type reader func(i *bufio.Reader) (RedisMessage, error)

var readers = [256]reader{}
var readers = [128]reader{}

func init() {
readers[typeBlobString] = readBlobString
Expand Down

0 comments on commit 36ca722

Please sign in to comment.