start with cap 64
Vladimir Bauer
3 years ago
| 72 | 72 | func NewWithContext(ctx context.Context, options ...ContainerOption) *Progress { |
| 73 | 73 | s := &pState{ |
| 74 | 74 | bHeap: priorityQueue{}, |
| 75 | rows: make([]io.Reader, 0, 128), | |
| 76 | pool: make([]*Bar, 0, 128), | |
| 75 | rows: make([]io.Reader, 0, 64), | |
| 76 | pool: make([]*Bar, 0, 64), | |
| 77 | 77 | rr: prr, |
| 78 | 78 | queueBars: make(map[*Bar]*Bar), |
| 79 | 79 | output: os.Stdout, |