-
Notifications
You must be signed in to change notification settings - Fork 559
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
Optimize reverse RANGE
#22825
Comments
Addressing this request might involve:
I've no idea exactly how easy/feasible this is. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Optimize reverse RANGE so that it doesn't produce a temporary array and "burn" memory.
I came upon an ancient perlmonks thread that suggested this would be "an easy candidate for optimization", but was surprised to find nobody had actually requested it.
Steps to Reproduce
for (reverse 0..1e7) { }
Expected behavior
No use of a temporary array and hence no memory inflation.
Perl configuration
This is perl 5, version 40, subversion 0 (v5.40.0) built for darwin-2level
The text was updated successfully, but these errors were encountered: