<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 30 Aug 2024 at 04:32, Walter Bright via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 8/28/2024 2:45 AM, Manu wrote:<br>
> Here's one that I just wrote a short while ago:<br>
> <a href="https://gist.github.com/TurkeyMan/0e49da245cc0086f852ac18deed21a9c" rel="noreferrer" target="_blank">https://gist.github.com/TurkeyMan/0e49da245cc0086f852ac18deed21a9c</a> <br>
<br>
<br>
```<br>
if (data.length < 4) // unlikely<br>
return 0;<br>
```<br>
<br>
replace with:<br>
<br>
```<br>
if (data.length < 4)<br>
goto Lreturn0;<br>
```<br></blockquote><div><br></div><div>How is that any different? The branch prediction hasn't changed.</div></div></div>