(capacity, length int)
| 290 | } |
| 291 | |
| 292 | func syncIteratorPoolGet(capacity, length int) []pq.Value { |
| 293 | res := syncIteratorPool.Get().([]pq.Value) |
| 294 | if cap(res) < capacity { |
| 295 | res = make([]pq.Value, capacity) |
| 296 | } |
| 297 | res = res[:length] |
| 298 | return res |
| 299 | } |
| 300 | |
| 301 | func syncIteratorPoolPut(b []pq.Value) { |
| 302 | for i := range b { |