dmd makes D appear slow
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Sat May 30 10:41:21 PDT 2015
On 30 May 2015 19:05, "via Digitalmars-d" <digitalmars-d at puremagic.com>
wrote:
>
> On Saturday, 30 May 2015 at 14:29:56 UTC, ketmar wrote:
>>
>> On Sat, 30 May 2015 12:00:57 +0000, Kyoji Klyden wrote:
>>
>>> So personally I vote that speed optimizations on DMD are a waste of time
>>> at the moment.
>>
>>
>> it's not only waste of time, it's unrealistic to make DMD backend's
>> quality comparable to GDC/LDC. it will require complete rewrite of
backend
>> and many man-years of work. and GDC/LDC will not simply sit frozen all
>> this time.
>
>
> +1 for LDC as first class!
>
> D would become a lot more appealing if it could take advantage of the
LLVM tooling already available!
>
> Regarding the speed problem - One could always have LDC have a nitro
switch, where it simply runs less of the expensive passes, thus reducing
the codegen quality, but improving speed. Would that work? I'm assuming the
"slowness" in LLVM comes from the optimization passes.
>
I'd imagine the situation is similar with GDC. For large compilations,
it's the optimizer, for small compilations, it's the linker. Small
compilations is at least solved by switching to shared libraries. For
larger compilations, only using -O1 optimisations should be fine for most
programs that aren't trying to beat some sort of benchmark.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150530/6f24f06a/attachment-0001.html>
More information about the Digitalmars-d
mailing list