Code runtime

Donald Drumpf via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 5 15:13:08 PDT 2016


On Sunday, 5 June 2016 at 22:08:21 UTC, Ausprobierer wrote:
> On Sunday, 5 June 2016 at 21:58:46 UTC, Donald Drumpf wrote:
>> [...]
>
> With
>
> [CODE]
> import std.algorithm;
> import std.array;
> import std.conv;
> import std.datetime;
> import std.parallelism;
> import std.range;
> import std.stdio;
> import core.atomic;
> import core.thread;
>
> long[] z = [1,1,2,2,3,3,4,4,5,5,6,6,0,0];
>
> void main()
> {
>     immutable long n = 11;
>
>     long l = z.length;
>     long j = 0;
> [...]
> [/CODE]
>
> and "dmd -m64 -O -inline -release <filename>.d" I still get 40 
> seconds runtime.

Well that's embarrassing.


More information about the Digitalmars-d mailing list