diff --git a/progress.go b/progress.go index 5263113..7329134 100644 --- a/progress.go +++ b/progress.go @@ -15,7 +15,7 @@ ) // buffer capacity allocated per bar structure (prepend|filler|append) -const defaultStructBufCap = 256 +const initialStructBufCap = 256 const defaultRefreshRate = 150 * time.Millisecond // DoneError represents use after `(*Progress).Wait()` error. @@ -468,7 +468,7 @@ } for i := 0; i < len(bs.buffers); i++ { - bs.buffers[i] = bytes.NewBuffer(make([]byte, 0, defaultStructBufCap)) + bs.buffers[i] = bytes.NewBuffer(make([]byte, 0, initialStructBufCap)) } return bs