Hi,
In message "Re: [ruby-core:25482] [Feature #2065] An ancestors iterator"
on Wed, 9 Sep 2009 00:39:40 +0900, Simon Chiang <redmine / ruby-lang.org> writes:
|The issue is that SomeClass.ancestors regenerates the ancestors array each time it is called. Therefore this is relatively slow:
Ruby creates a lot of objects during its execution, so I am not sure
how significant eliminating array generation from Module#ancestors.
If you meet real performance problem from it, I'd happy to see the
(non artificial) benchmarks.
matz.