Codebase list golang-github-beorn7-perks / 809081c
histogram: TODO about reducing complexity on insert Blake Mizerany 10 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7878 return r.bins[i].Mean() >= bin.Mean()
7979 })
8080 if i < 0 || i == r.bins.Len() {
81 // TODO(blake): Maybe use an .insert(i, bin) instead of
82 // performing the extra work of a heap.Push.
8183 heap.Push(&r.bins, bin)
8284 return
8385 }