Array bound checks removal increasing importance

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 5 15:14:05 PDT 2014


On Thursday, 5 June 2014 at 09:36:53 UTC, bearophile wrote:
> deadalnix:
>
>>I think we should focus on solving problems that modern backend 
>>aren't capable to optimize.<
>
> I agree. But those D snippets I have written are not able to 
> show what the backends are or aren't able to do. Generally if 
> you compile D code even with LDC2 you see a significant 
> performance difference in heavy-array processing code if you 
> compile it with or without -noboundscheck. I have seen this 
> plenty of times. If you want we can take a look at some 
> benchnmarks.
>

I know and this is worthwhile to add some effort to optimize
that. I was simply reminding that we should try to understand in
which case the code is not optimized and why, before jumping to
solutions.


More information about the Digitalmars-d mailing list