heaps: fix minor doc typo.
parent
d29052c7b9
commit
75f36fa9c5
|
@ -117,7 +117,7 @@ M: heap heap-push*
|
||||||
! A quote from cpython's implementation:
|
! A quote from cpython's implementation:
|
||||||
! > We *could* break out of the loop as soon as we find a pos where newitem <=
|
! > We *could* break out of the loop as soon as we find a pos where newitem <=
|
||||||
! > both its children, but turns out that's not a good idea [...]
|
! > both its children, but turns out that's not a good idea [...]
|
||||||
! Indeed the code is 33% slower if we remove this optmization.
|
! Indeed the code is 33% slower if we remove this optimization.
|
||||||
:: sift-up ( heap n -- )
|
:: sift-up ( heap n -- )
|
||||||
heap data>> :> data
|
heap data>> :> data
|
||||||
data length :> end
|
data length :> end
|
||||||
|
|
Loading…
Reference in New Issue