From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-x232.google.com (mail-qt0-x232.google.com [IPv6:2607:f8b0:400d:c0d::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 993F23B29E for ; Sun, 26 Nov 2017 05:00:11 -0500 (EST) Received: by mail-qt0-x232.google.com with SMTP id r37so27750324qtj.12 for ; Sun, 26 Nov 2017 02:00:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yPFwMd40+g4Dxvn5/I0ktKk5U3/OmdPa1rc44nh+hg8=; b=CmoUTCROt89P1o8jqzQQDUHQKMx+u96R8T1bSvd8ixcRFE8AzJ6b1DGjvVXa5RlrOA pUHYxHOTqpF38NQ9HNkNVekPJlKx+X2yaLEg3GR4rU42SKfXob/kcFag++QTD/6bok9m NfeUkOVpe1+cHzKEkt5n7Jn9Fal9QOGKrD71oYBbBg9wGmKNm00ICEPSJdZH2pUjEWEZ 1/R3ZYGSUeOWfOsn64S4cMmnrMdWAS4niQ1dIvs7tl5Ff2gzfrhT7GN1VklVFwwmZ3oI l99SrQmuzIlHRb7ZqOunij0XpRiO/koVTaq60mey1a8GpTioFTkJZrxr+DlRYunh4UO0 LK3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yPFwMd40+g4Dxvn5/I0ktKk5U3/OmdPa1rc44nh+hg8=; b=QE8JQDUjmjCbvDfBY7rv5nwidEaFYf6N+cTgOeOAhPWYUnJ6kBYEiOtTKqgkcpWC4V FXutlHgDEeDNcklfxj9HjKM30D9hk+mjA9P7IAhz3OhqkpJ3cAhg0ewK5KKBm18uyuu2 aNUDSBvvdKMRKervjOMihDy+li688Ys1oVksCBmU17w3l0K7zEeGZ8HdygqiJz/wOErm Qo8BIs9W4hWmYF/PbaZSI7oUfw85hrix28vNlXXjRuXOVzY9Ao9+qi9rl74SNO0X4mBQ bT3t1va7krIngKQzI6KfqCDFhgv3+G3p3IupWcUlUjtSxlgJo7NIEgyVFqWPx2k0YtC2 tDXg== X-Gm-Message-State: AJaThX7AfA5qAMIgMqiKXmkGIx4i/lmJOKDijiL3JizJCCUdOyjtZTM+ 4Lvr6u0mFb1vWZpcJBqQQ3ruU0SsJg1gjKLWdKc= X-Google-Smtp-Source: AGs4zMZOsYSfbANBi0yCdfXRp6dWXzM1DZHu1F2ADwk0fMAYdeE9OlrPolUi9L76ptRG3Y0jmui3OQ+vQNLWJUfMo5I= X-Received: by 10.237.54.227 with SMTP id f90mr53469934qtb.121.1511690411247; Sun, 26 Nov 2017 02:00:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.102.179 with HTTP; Sun, 26 Nov 2017 02:00:10 -0800 (PST) Received: by 10.140.102.179 with HTTP; Sun, 26 Nov 2017 02:00:10 -0800 (PST) In-Reply-To: <5816D8EC-71EF-43FF-95A5-1B061B329701@darbyshire-bryant.me.uk> References: <5816D8EC-71EF-43FF-95A5-1B061B329701@darbyshire-bryant.me.uk> From: Jonathan Morton Date: Sun, 26 Nov 2017 12:00:10 +0200 Message-ID: To: Kevin Darbyshire-Bryant Cc: Cake List Content-Type: multipart/alternative; boundary="001a11435860f90de8055edfd9bd" Subject: Re: [Cake] RFC: allocate without the gotos X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2017 10:00:11 -0000 --001a11435860f90de8055edfd9bd Content-Type: text/plain; charset="UTF-8" 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 --001a11435860f90de8055edfd9bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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.=C2=A0 Only if the compiler is smart enou= gh to transform it back the way it was...

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

- Jonathan Morton

--001a11435860f90de8055edfd9bd--