foreach thoughts

David Nadlinger code at klickverbot.at
Tue Jan 14 10:38:25 PST 2014


On Tuesday, 14 January 2014 at 16:31:00 UTC, Dicebot wrote:
> So it does inline but end result is still less optimal 
> assembly-wise.

The problem, by the way, seems to be that the program actually 
contains two loops that LLVM cannot merge: One in the filter() 
constructor (skipping the initial run of even elements), and the 
actual foreach loop in main().

David


More information about the Digitalmars-d mailing list