Yukihiro Matsumoto
5/18/2007 12:46:00 PM
Hi,
In message "Re: Why does Array#first not use rb_ary_subseq?"
on Fri, 18 May 2007 21:36:19 +0900, Stefan Rusterholz <apeiros@gmx.net> writes:
|When I run a small bench I noticed that Array#first(n) with an argument
|is vastly slower than Array#[0,n].
The difference is due to Array#first is optimized for memory
consumption, I guess. We'd like profile on the use-case, so could you
show us "vastly slower" example code?
matz.