Problems with dmd inlining

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Dec 12 18:22:21 PST 2010


On 12/12/10 5:06 PM, Simen kjaeraas wrote:
> Jason House <jason.james.house at gmail.com> wrote:
>
>> Craig Black Wrote:
>>
>>> > One more thing - to clarify, Craig, are you implying that it's
>>> acceptable
>>> > for performance to be within 20%? If not, there are tweaks on the
>>> > algorithmic side we can do to improve sorting.
>>>
>>> 20% slower would be acceptable if I didn't have to do my own inlining.
>>> Closing the gap even more would be nice. Twice as slow is not
>>> acceptable.
>>>
>>> -Craig
>>
>> I wish I had your problems. I ported a sizable set of C++ code to D2
>> and discovered D2 with dmd was 50x slower than C++ with gcc! I've been
>> to busy/disappointed to track down the bug(s) causing such a slowdown.
>> If anyone is sufficiently inspired to find the bugs, I can make the
>> GPL source code available.
>
> If no-one else has stepped up, I'm willing to have a look.

That would be a great help to the community. I did look at that code and 
nothing jumped at me. But then I didn't have enough time to profile it 
properly.

Andrei



More information about the Digitalmars-d mailing list