Problems with dmd inlining

Michel Fortin michel.fortin at michelf.com
Sun Dec 12 08:48:09 PST 2010


On 2010-12-12 11:09:24 -0500, so <so at so.do> said:

>> Normally, yes, I'd agree. But in this case, it's merely a port of the  
>> C++ source code, so all algorithms are identical. The only change I did 
>>  initially was to use ranges, but even after replacing those with 
>> mixins,  the performance was equally as bad. There's also no memory 
>> allocations,  so the GC isn't an issue either. There are also 
>> benchmarks on behavior  that make me fairly confident the behavior is 
>> comparable.
> 
> If you already haven't, i suggest you to profile it and share related  
> parts with us.
> That is unacceptable.

Another interesting metric would be to compile the C++ code with 
inlining disabled and compare with the D code with inlining disabled.

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



More information about the Digitalmars-d mailing list