Codebase list golang-github-vbauerster-mpb / 503091c
make rows with ample capacity equal to term height Vladimir Bauer 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
253253
254254 func (s *pState) flush(cw *cwriter.Writer, height int) error {
255255 var popCount int
256 rows := make([]io.Reader, 0, s.bHeap.Len())
256 rows := make([]io.Reader, 0, height)
257257 pool := make([]*Bar, 0, s.bHeap.Len())
258258 for s.bHeap.Len() > 0 {
259259 var frameRowsUsed int