1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:28:32 -06:00
go/src/container/heap
Sina Siadat b98d8cd5ce container/heap: remove one unnecessary comparison in Fix
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>
2016-08-16 00:40:03 +00:00
..
example_intheap_test.go
example_pq_test.go
heap_test.go container/heap: correct number of elements in BenchmarkDup 2016-04-20 15:26:05 +00:00
heap.go container/heap: remove one unnecessary comparison in Fix 2016-08-16 00:40:03 +00:00