From: Brian Candler Date: 2008-12-10T05:14:22+09:00 Subject: Re: Way to many calls to Dir#[] Tj Holowaychuk wrote: > I cannot seem to debug this issue... my entire library does not call > Dir#[] a single time, however when I used ruby-prof I get: > > 17.26 0.14 0.14 0.00 0.00 594 #[] > > unnecessarily slowing things down. I have profiled all the other > libraries I am requiring, and none of them produce this same number of > calls, so I suppose it can only be something I am calling within, but > this seems very weird.... any ideas? There is probably some elegant debug or tracing way to do this, but personally I'd just stick this at the top of my program: class <