[Cake] RFC: allocate without the gotos

Dave Taht dave at taht.net
Sun Nov 26 13:19:43 EST 2017

Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk> writes:

>> On 26 Nov 2017, at 10:00, Jonathan Morton <chromatix99 at gmail.com> wrote:
>> 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…
> It was done as a ‘for sh*ts’n’giggles’ exercise….which is probably why I haven’t even tried compiling it :-)
>> ...and IMHO the goto version is easier to read too.
> I definitely agree with that!

gotos we stick with, then.

>> - Jonathan Morton
> _______________________________________________
> Cake mailing list
> Cake at lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake

More information about the Cake mailing list