[Issue 19705] Static foreach slow for numeric ranges
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 22 08:17:03 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=19705
Boris Carvajal <boris2.9 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |boris2.9 at gmail.com
--- Comment #2 from Boris Carvajal <boris2.9 at gmail.com> ---
I made a change that improve these cases.
https://github.com/dlang/dmd/pull/11303
Now:
static foreach (i; 0..10000) {}
is faster than:
alias A = generate!10000;
static foreach (i; A) {}
as it should be.
--
More information about the Digitalmars-d-bugs
mailing list