From: "gregolsen (Innokenty Mikhailov)" Date: 2013-06-03T04:20:59+09:00 Subject: [ruby-core:55259] [ruby-trunk - Feature #6183] Enumerator::Lazy performance issue Issue #6183 has been updated by gregolsen (Innokenty Mikhailov). Indeed append_method was exctracted by nobu 2 weeks ago as a refactoring of enumerator_inspect. But that's it, nothing was merged yet. I'm not sure I'll be able to rebase patch in next few weeks - got only android tablet with me. I'll let you know when ready. Thanks a lot for your interest. ---------------------------------------- Feature #6183: Enumerator::Lazy performance issue https://bugs.ruby-lang.org/issues/6183#change-39654 Author: gregolsen (Innokenty Mikhailov) Status: Assigned Priority: Low Assignee: zzak (Zachary Scott) Category: Target version: I benchmarked Enumerator::Lazy and that's what I got: user system total real Lazy: 0.690000 0.010000 0.700000 ( 0.733160) Normal: 0.160000 0.010000 0.170000 ( 0.186695) It seems like even with 4 chain links and 3000 elements in initial array, Lazy enumerator is almost 4(!) times slower than the normal case. Instead of performance benefit we've got 4 times performance drawback. See test file attached. -- http://bugs.ruby-lang.org/