Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iota() should be statically specialized for increment 1 #10002

Open
dlangBugzillaToGithub opened this issue Sep 20, 2013 · 1 comment
Open

iota() should be statically specialized for increment 1 #10002

dlangBugzillaToGithub opened this issue Sep 20, 2013 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

andrei (@andralex) reported this on 2013-09-20T12:33:24Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=11077

CC List

  • iamthewilsonator

Description

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.
@dlangBugzillaToGithub
Copy link
Author

iamthewilsonator commented on 2019-11-03T05:47:02Z

This is a phobos bug.

@LightBender LightBender removed the P4 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants