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

safety0ff.bugz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from safety0ff.bugz <[email protected]> ---
(In reply to weaselcat from comment #0)
> using the "slow"(aka ranges) version, DMD produces code that is 4 times
> slower. Almost same exact ratios for GDC, so I assume it's due to frontend(?)
> 
> LDC seems to optimize it away to almost identical performance between "fast"
> and "slow" version, unsure if it's due to the LLVM optimizations or one of
> their patches to dmd.
>

AFAIK slow version allocates a closure on the heap, perhaps LDC optimizes out
unnecessary closures.

--

Reply via email to