Code runtime
Donald Drumpf via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 5 14:58:46 PDT 2016
On Sunday, 5 June 2016 at 21:52:20 UTC, Ausprobierer wrote:
> I've written this simple piece of code:
>
> [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;
>
> [...]
How many times did you run each? A single run isn't ever really
useful. Also, not sure if this would account for the drastic
difference, but declare long Z[] in global scope over in local
scope might have some impact.
If I wrote this, it would be faster, I guarantee it.
More information about the Digitalmars-d
mailing list