-
-
Notifications
You must be signed in to change notification settings - Fork 375
Remove a lot of uses of IMPL-UNWRAP-LIST #5887
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
base: main
Are you sure you want to change the base?
Remove a lot of uses of IMPL-UNWRAP-LIST #5887
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message is misleading. The patch removes the WRAP, not the UNWRAP calls.
"[It] is a public API and as such can be overridden by a Raku class which would return a List, not a VMArray. Thus we really should IMPL-UNWRAP-LIST the result before indexing into it." - rakudo#5887 (comment)
2501465
to
89b40fb
Compare
"[It] is a public API and as such can be overridden by a Raku class which would return a List, not a VMArray. Thus we really should IMPL-UNWRAP-LIST the result before indexing into it." - rakudo#5887 (comment)
89b40fb
to
589178a
Compare
I wonder what the performance impact of this change is? For sure it's positive, but how much? |
I did |
FWIW, without |
Removing these ones doesn't break any spectests.
"[It] is a public API and as such can be overridden by a Raku class which would return a List, not a VMArray. Thus we really should IMPL-UNWRAP-LIST the result before indexing into it." - rakudo#5887 (comment)
589178a
to
2c9cfb4
Compare
Removing these ones doesn't break any spectests.
There are more than can be removed, but not all, and I haven't yet figured out exactly which.