load performance boost

This commit is contained in:
Josh Baker 2016-08-23 07:23:02 -07:00
parent 4b91c891c4
commit 93cc8f3fcb
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ func (db *DB) load() error {
return ErrInvalid
}
// copy string
parts = append(parts, string(append([]byte{}, data[:n]...)))
parts = append(parts, string(data[:n]))
}
// finished reading the command