Why is D slower than LuaJIT?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Wed Dec 22 17:18:44 PST 2010
On 12/22/10, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> Without any imperical testing, I would guess this has something to do with
> the lack of inlining for algorithmic functions. This is due primarily to
> uses of enforce, which use lazy parameters, which are currently not
> inlinable (also, ensure you use -O -release -inline for the most optimized
> code).
>
I have just tried removing enforce usage from Phobos and recompiling
the library, and compiling again with -O -release -inline. It doesn't
appear to make a difference in the timing speed over multiple runs.
More information about the Digitalmars-d
mailing list