mirror of
https://github.com/golang/go
synced 2024-10-01 01:28:32 -06:00
b98d8cd5ce
The heap.Fix function calls both down and up. If the element is moved down, we don't need to call up and we could save a comparison. (per suggestion by Radu Berinde) Fixes #16098. Change-Id: I83a74710e66cf0d274d8c0743338c26f89f31afe Reviewed-on: https://go-review.googlesource.com/24273 Reviewed-by: Robert Griesemer <gri@golang.org> |
||
---|---|---|
.. | ||
example_intheap_test.go | ||
example_pq_test.go | ||
heap_test.go | ||
heap.go |