August 31 General » Re: Standard way to supply hints to branches | |||
|---|---|---|---|
| |||
...question. He said a single break or goto is NOT considered the hot branch by... | |||
August 29 General » Re: Standard way to supply hints to branches | |||
|---|---|---|---|
| |||
```
if (data.length < 4) // unlikely
return 0;
```
replace with:
```
if (data.length < 4)
goto Lreturn0;
``` | |||
August 27 General » Re: Standard way to supply hints to branches | |||
|---|---|---|---|
| |||
...like `do {}
while(0)`, using labels and goto's which doesn't marry well with... | |||
August 24 General » Re: Standard way to supply hints to branches | |||
|---|---|---|---|
| |||
...HotPath:
...
goto End;
ColdPath:
...
End:
...
```
In pseudo code:
```
if (condition == 0)
goto ColdPath;
HotPath:
{
}
goto... | |||
August 23 General » Re: Standard way to supply hints to branches | |||
|---|---|---|---|
| |||
...work: ``` if (x) goto Lreturn; if (y) goto Lreturn; if (z) goto Lreturn; hotPath(); Lreturn: ``` | |||
August 14 DIP Development » Re: Null-checked reference types | |||
|---|---|---|---|
| |||
...to, move constructors. Same with unreachable, loops & goto reset reachability of variables. I'm not... | |||
July 28 General » Re: [Not really OT] Crowdstrike Analysis: It was a NULL pointer from the memory unsafe C++ language. | |||
|---|---|---|---|
| |||
...field1) {
if (S2* ptr2 = ptr1.field2) {
// success
goto AfterFailure;
}
}
// failure
AfterFailure:
```
From:
```d
if (int... | |||
July 23 Issues » [Issue 24676] New: Allow break and continue in scope(exit/failure/success) | |||
|---|---|---|---|
| |||
...continue` statements. The lowering absolutely supports these. Also, `goto` should be allowed. Cf. Issue 24460. -- | |||
July 23 Issues » [Issue 24460] scope(failure) with a goto breaks safety | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=24460 Bolpat <qs.il.paperinik@gmail.com... | |||
July 23 Issues » [Issue 9300] Syntax for loop invariants | |||
|---|---|---|---|
| |||
...the loop is entered or left via `goto`. My sense is entering should not check... | |||
Copyright © 1999-2021 by the D Language Foundation