Closed
Conversation
havenwood
reviewed
Nov 10, 2022
be9f901 to
e291e4f
Compare
ko1
reviewed
Feb 1, 2023
nirvdrum
reviewed
Feb 1, 2023
2aff775 to
8cfa04c
Compare
Merged
8cfa04c to
6cd0535
Compare
ed56476 to
bf8d9a3
Compare
3f20afb to
224c1f2
Compare
eregon
reviewed
Mar 16, 2023
4b3a2a4 to
5f8ff7b
Compare
5f8ff7b to
18c9a45
Compare
Member
Author
|
Given https://bugs.ruby-lang.org/issues/20182#note-5, #9533 will take this over. |
alfuken
reviewed
Feb 2, 2024
|
|
||
| Fiber.new { | ||
| $ary = OBJ_COUNT.times.map { Foo.new } | ||
| $ary.each(&:add_ivars) |
There was a problem hiding this comment.
@k0kubun forgive me my ignorance, but just out of curiosity: why is there a change in tests from each to reverse_each?.. If this PR is a refactoring of internal mechanism, shouldn't tests remain the same, to ensure (non-)regression integrity?..
Member
Author
There was a problem hiding this comment.
The change of this line was actually not necessary, so I reverted it in the end #9533 (comment).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Similarly to
Integer#times#8388, this PR rewritesArray#eachin Ruby.microbenchmark
Interpreter
It's a bit slower than the original C method.
YJIT
It's 5.3x faster.