[Cake] RFC: allocate without the gotos

Jonathan Morton chromatix99 at gmail.com
Sun Nov 26 05:00:10 EST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20171126/c4e82809/attachment.html>


More information about the Cake mailing list