From: Adam Prescott Date: 2013-04-03T19:13:29+09:00 Subject: Re: respond_to? vs include? --bcaec54860f0e756c204d9721a4f Content-Type: text/plain; charset=UTF-8 On 3 Apr 2013 08:49, "Robert Klemme" wrote: > > Yeah, Array lookup is O(n) - that's what one would expect. But the Array creation has overhead as well. > Good catch. Definitely a painful way to implement respond_to? ! --bcaec54860f0e756c204d9721a4f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On 3 Apr 2013 08:49, "Robert Klemme" <shortcutter@googlemail.com> w= rote:
>
> Yeah, Array lookup is O(n) - that's what one would expect. =C2=A0B= ut the Array creation has overhead as well.
>

Good catch. Definitely a painful way to implement respond_to= ? !

--bcaec54860f0e756c204d9721a4f--