The nail in the coffin of C++ or why don't GO there...
Shachar Shemesh via Digitalmars-d
digitalmars-d at puremagic.com
Thu Mar 30 06:31:49 PDT 2017
On 30/03/17 09:58, Ervin Bosenbacher wrote:
>
> Performance test:
> rvinMacBookProLimegg:source ervinbosenbacher$ time ./app
> [31, 28, 31]
> [30, 31, 30]
> [31, 31, 30]
> [31, 30, 31]
>
> real 0m0.004s
> user 0m0.001s
> sys 0m0.001s
>
> ErvinMacBookProLimegg:source ervinbosenbacher$ time ./a.out
> [31, 28, 31]
> [30, 31, 30]
> [31, 31, 30]
> [31, 30, 31]
>
> real 0m0.004s
> user 0m0.001s
> sys 0m0.002s
>
> That is the same, that came as a shock to me.
>
> Happy coding al!
I just finished implementing RAID parity calculations. I don't remember
the precise numbers, but I saved a non-insignificant amount of run time
(order of 10-20%) by casting from ranges to pointers before running the
XORs.
Be sure to benchmark.
Shachar
More information about the Digitalmars-d
mailing list