On Thursday, 30 March 2017 at 10:28:01 UTC, dennis luehring wrote:
Am 30.03.2017 um 08:58 schrieb Ervin Bosenbacher:
That is the same, that came as a shock to me.
most compilers (for many languages) can optimize your
super-trivial example down to nothing - for at least the last
10 years or more
so whats the point? you're talkin about "performance is
critical for me"
but missing even minor knowledge about todays compiler powers?
for a benchmark you need:
-loops, running millions of times, preventing IO and do now
fall into the completely-optimized-to-nothing-trap etc.
yes it was a quick hack. I try it again. Optimizations were
turned on -O3 in case of gcc -O i case of dmd. But I am convinced
that D language and is sufficiently good case for myself. First I
wanted to go with C++/C/Python trio but that I ca replace with
one language getting rid of additional complexities and other
stuff. I agree compilers are not my thing so I will have a look
deeper. Thx for the comment.
Happy coding!