Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Jonathan Morton <chromatix99@gmail.com>
To: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Cc: Cake List <cake@lists.bufferbloat.net>
Subject: Re: [Cake] RFC: allocate without the gotos
Date: Sun, 26 Nov 2017 12:00:10 +0200	[thread overview]
Message-ID: <CAJq5cE1K0OQmqifjZg1kDW0biOoF6OZVbAHi_LCy0n0LAYYdcQ@mail.gmail.com> (raw)
In-Reply-To: <5816D8EC-71EF-43FF-95A5-1B061B329701@darbyshire-bryant.me.uk>

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

On a purely theoretical basis, it probably isn't as fast, because now the
'found' condition has to be tested multiple times on the fast and slow
paths alike.  Only if the compiler is smart enough to transform it back the
way it was...

...and IMHO the goto version is easier to read too.

- Jonathan Morton

[-- Attachment #2: Type: text/html, Size: 379 bytes --]

  reply	other threads:[~2017-11-26 10:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-26  9:54 Kevin Darbyshire-Bryant
2017-11-26 10:00 ` Jonathan Morton [this message]
2017-11-26 10:03   ` Kevin Darbyshire-Bryant
2017-11-26 18:19     ` Dave Taht

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=CAJq5cE1K0OQmqifjZg1kDW0biOoF6OZVbAHi_LCy0n0LAYYdcQ@mail.gmail.com \
    --to=chromatix99@gmail.com \
    --cc=cake@lists.bufferbloat.net \
    --cc=kevin@darbyshire-bryant.me.uk \
    /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