[Issue 11077] New: iota() should be statically specialized for increment 1

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 20 12:33:25 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11077

           Summary: iota() should be statically specialized for increment
                    1
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrei at erdani.com


--- Comment #0 from Andrei Alexandrescu <andrei at erdani.com> 2013-09-20 12:33:24 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list