Post increment and decrement
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Fri Mar 20 16:57:56 PDT 2015
On Friday, 20 March 2015 at 22:52:54 UTC, welkam wrote:
> On Friday, 20 March 2015 at 22:01:35 UTC, deadalnix wrote:
>> Now end up you data gathering :
>> Turn them around (sed can do that for you), recompile,
>> benchmark, and see that it does not change anything at the end.
> I do not know exact implementation of D compiler but I guess it
> generates code and then optimises it away. If thats the case
> then you slow down your compilation unnecessarily.
You can include measurement of compile time in your benchmark.
> Also having language construct that is being used only 15% of
> the time correctly is not great. And D has foreach. In C++
> world this is even worse.
> Is this a big problem? Not really, but its still a problem.
I'm waiting the numbers that support this assertion with great
More information about the Digitalmars-d