ruby/internal
Alan Wu 11e7ab79de
Remove 1 allocation in Enumerable#each_with_index (#11868)
* Remove 1 allocation in Enumerable#each_with_index

Previously, each call to Enumerable#each_with_index allocates 2
objects, one for the counting index, the other an imemo_ifunc passed
to `self.each` as a block.

Use `struct vm_ifunc::data` to hold the counting index directly to
remove 1 allocation.

* [DOC] Brief summary for usages of `struct vm_ifunc`
2024-10-11 10:22:44 -04:00
..
2024-09-05 12:46:02 +02:00
2024-10-03 21:20:09 +01:00
2024-10-03 21:20:09 +01:00
2024-09-05 12:46:02 +02:00
2024-04-04 15:00:57 +01:00
2024-03-18 13:52:27 +09:00