Inlining Ref Functions

Michel Fortin michel.fortin at michelf.com
Fri May 15 19:37:23 PDT 2009


On 2009-05-15 16:36:16 -0400, dsimcha <dsimcha at yahoo.com> said:

> The fact that DMD does not inline functions with ref parameters has come up
> several times deep in threads on this NG before, but it's never really
> received proper attention.  After changing a few swaps in performance-critical
> areas of my code to "manually inlined" swaps and seeing significant speedups,
> I'm kind of curious what the rationale is for not inlining functions w/ ref
> params.  Is there a good technical reason for this or is it simply a matter of
> having higher priorities?  Is inlining functions w/ ref params on the "to do
> eventually" list?

Which makes me think: now that "this" in structs is now a "ref" 
parameter, does that mean that all non-static member functions of a 
struct won't be inlined?

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list