<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 15 January 2014 02:16, Dicebot <span dir="ltr"><<a href="mailto:public@dicebot.lv" target="_blank">public@dicebot.lv</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday, 14 January 2014 at 15:37:21 UTC, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry, that was 2 separate points although it didn't look like it.<br>
The first question was assuming full optimisation, is it equivalent to the<br>
if statement I demonstrate with full optimisation in practise? (I'll do<br>
some tests, but people must have already experimented in various<br>
circumstances, and identified patterns?)<br>
</blockquote>
<br></div>
Don't think so. LDC is best at doing such transformation per my observations but it still major are for improvements in general.</blockquote><div><br></div><div>So you're saying that using these primitives like until! and filter! will not produce the same code as my if statement when optimised?</div>
<div>That's worrying. I'll have to try it out.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'd like to know if anybody can see any path towards inlined<br>
lambda's/literal's/micro-<u></u>functions in non-optimised builds?<br>
I guess the first question is, is this a problem that is even worth<br>
addressing? How many people are likely to object in principle?<br>
</blockquote>
<br></div>
I'd object against it general. Important trait of such builds is resulting code gen that matches original source code as much as possible. Mass inlining will kill it. But I don't see why you use "debug" and "non-optimised" as synonyms here. For example, in DMD "-release" vs "-debug" are orthogonal to "-O". I see no problems with doing optimised debug build.<br>

</blockquote></div><br></div><div class="gmail_extra">You can't step a -O build, or inspect the value of most variables. So you can't really debug.</div></div>