static array litteral syntax using a library solution (no GC and 40x faster!)
Danny Arends
Danny.Arends at gmail.com
Sun Feb 3 04:09:38 PST 2013
interesting implementation, and very fast indeed...
(My Netbook MSI Wind u100 - Intel Atom)
S() (DMD) -> 0.189 s
C gcc -03 -> 0.445 s
SArray (DMD) -> 0.738 s
C gcc -02 -> 3.205 s
Gr,
Danny Arends
http://www.dannyarends.nl
On Sunday, 3 February 2013 at 09:28:05 UTC, timotheecour wrote:
> actually, we can use
> "T0[T.length]ret=void;"
> instead of
> "T0[T.length]ret;"
> inside the definition of S. It doesn't make a difference for
> ldc which optimizes it away, but it does for dmd (which is also
> about 10x slower than ldc).
More information about the Digitalmars-d
mailing list