iota() for integrals stores the step as a member variable. This makes the frequent case step=1 slower than it should. Calls using iota(max) or iota(min, max) should return a structure not storing step, and using ++ to get to the next item.
This is a phobos bug.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10002 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB