pragma(inline, true) not very useful in its current state?

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 25 22:33:34 PDT 2015


On 24 Sep 2015 9:46 pm, "Walter Bright via Digitalmars-d" <
digitalmars-d at puremagic.com> wrote:
>
> On 9/24/2015 8:47 AM, David Nadlinger wrote:
>>
>> What were the reasons behind this decision?
>
>
> The trouble is the compiler does inlining as a top down traversal,
whereas forcing inline with no -inline would be a bottom up thing. The
compiler could always do the top down traversal, but it would make
compilations slower, whether any force inlines exist or not.

Isn't this just a problem with dmd's inliner/inlining strategy? (Mixed in
with its need for speed)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150926/425e841d/attachment.html>


More information about the Digitalmars-d mailing list