make rows with ample capacity equal to term height
Vladimir Bauer
3 years ago
| 253 | 253 |
|
| 254 | 254 |
func (s *pState) flush(cw *cwriter.Writer, height int) error {
|
| 255 | 255 |
var popCount int
|
| 256 | |
rows := make([]io.Reader, 0, s.bHeap.Len())
|
|
256 |
rows := make([]io.Reader, 0, height)
|
| 257 | 257 |
pool := make([]*Bar, 0, s.bHeap.Len())
|
| 258 | 258 |
for s.bHeap.Len() > 0 {
|
| 259 | 259 |
var frameRowsUsed int
|