etcd/lease
Gyuho Lee 9c62d7b2d1 leaes: remove unnecessary O(log N) operation when nothing is expiry
Since heap is already sorted, we can just check first element
to see if anything is expiry, rather than popping and pushing
it back. If nothing is expiry, pop operation is unnecessary.

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-02 16:34:34 -07:00
..
leasehttp *: revert "internal/mvcc" change 2018-02-26 17:11:40 -08:00
leasepb *: revert "internal/lease" change 2018-02-26 17:11:40 -08:00
doc.go *: revert "internal/lease" change 2018-02-26 17:11:40 -08:00
lease_queue.go lease: godoc "LeaseWithTime", change field name to "id" 2018-04-02 14:58:34 -07:00
lease_queue_test.go leaes: remove unnecessary O(log N) operation when nothing is expiry 2018-04-02 16:34:34 -07:00
lessor.go leaes: remove unnecessary O(log N) operation when nothing is expiry 2018-04-02 16:34:34 -07:00
lessor_bench_test.go lease: fix gofmt 2018-04-02 13:00:33 -07:00
lessor_test.go *: enforce max lease TTL with 9,000,000,000 seconds 2018-03-08 10:17:12 -08:00