[Issue 15671] The compiler should take into account inline pragmas when inlining

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 6 06:19:36 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=15671

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
The compiler is using a heuristic of "if the amount of code in a function is
above a certain threshold, then it is not inlined." The idea is that the
overhead of a function call becomes small when the size of the function is
large. Where the code came from is irrelevant.

--


More information about the Digitalmars-d-bugs mailing list