From: "mame (Yusuke Endoh)" Date: 2012-12-09T20:57:44+09:00 Subject: [ruby-core:50707] [ruby-trunk - Feature #6183] Enumerator::Lazy performance issue Issue #6183 has been updated by mame (Yusuke Endoh). Sorry, maybe I have no time to review your patch. Anyone interested? -- Yusuke Endoh ---------------------------------------- Feature #6183: Enumerator::Lazy performance issue https://bugs.ruby-lang.org/issues/6183#change-34552 Author: gregolsen (Innokenty Mikhailov) Status: Assigned Priority: Low Assignee: mame (Yusuke Endoh) 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/