storage: set revBytes capacity to avoid malloc when appending mark

This is a performance optimization.
release-2.3
Yicheng Qin 2015-11-19 09:53:31 -08:00
parent 2f74f76025
commit 1214f77519
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func (a revision) GreaterThan(b revision) bool {
}
func newRevBytes() []byte {
return make([]byte, revBytesLen)
return make([]byte, revBytesLen, markedRevBytesLen)
}
func revToBytes(rev revision, bytes []byte) {