Feature #10508
Return enumerator in TSort iterators
Description
Return an Enumerator if no block is given for:
- TSort.tsort_each
- TSort.each_strongly_connected_component
- TSort.each_strongly_connected_component_from
Files
Added by ptico (Andrey Savchenko) about 6 years ago. Updated about 6 years ago.
Description
Return an Enumerator if no block is given for:
Files
0001-Return-enumerator-in-TSort-each_-methods.patch (3.27 KB) 0001-Return-enumerator-in-TSort-each_-methods.patch | ptico (Andrey Savchenko), 11/13/2014 09:04 PM |
Looks good.
Unnecessary Enumerator slows the performance down.
If you mean these .to_a calls, i have created dummy benchmark: https://gist.github.com/Ptico/a16a5fe221de91166c31 and it looks good
Applied in changeset ruby-trunk:r48584.