Issue #10508 has been updated by Andrey Savchenko.


If you mean these .to_a calls, i have created dummy benchmark: https://gist.github.com/Ptico/a16a5fe221de91166c31 and it looks good

----------------------------------------
Feature #10508: Return enumerator in TSort iterators
https://bugs.ruby-lang.org/issues/10508#change-49954

* Author: Andrey Savchenko
* Status: Open
* Priority: Normal
* Assignee: Akira Tanaka
* Category: 
* Target version: Ruby 2.2.0
----------------------------------------
Return an Enumerator if no block is given for:

* TSort.tsort_each
* TSort.each_strongly_connected_component
* TSort.each_strongly_connected_component_from

---Files--------------------------------
0001-Return-enumerator-in-TSort-each_-methods.patch (3.27 KB)


-- 
https://bugs.ruby-lang.org/