From: Jonathan Morton <chromatix99@gmail.com>
To: Dave Taht <dave.taht@gmail.com>
Cc: Cake List <cake@lists.bufferbloat.net>
Subject: Re: [Cake] cake_heap* could use some comments
Date: Sat, 2 Dec 2017 09:57:26 +0200 [thread overview]
Message-ID: <CAJq5cE1HVbkMNC8VEngGa2=oDKUecw6-2OSFwSUgrzX9+CzuOg@mail.gmail.com> (raw)
In-Reply-To: <CAA93jw5ABRWpUkPF7QyW9jFBR4EXS+6peRNHff71hu0Gxwi3ZQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
These are standard heap algorithms whose operation should be easily
recognisable. The build loop runs over the set of non-leaf nodes,
implicitly accessing both children which are automatically at double the
index.
The timeout is simply there to elide the overhead of maintaining the heap
when hard dropping hasn't been necessary for a while.
- Jonathan Morton
[-- Attachment #2: Type: text/html, Size: 427 bytes --]
prev parent reply other threads:[~2017-12-02 7:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-02 4:36 Dave Taht
2017-12-02 7:57 ` Jonathan Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJq5cE1HVbkMNC8VEngGa2=oDKUecw6-2OSFwSUgrzX9+CzuOg@mail.gmail.com' \
--to=chromatix99@gmail.com \
--cc=cake@lists.bufferbloat.net \
--cc=dave.taht@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox