From: Randy Kramer Date: 2005-04-04T21:52:55+09:00 Subject: Re: Ruby optimization - re-implement in compiled language? On Monday 04 April 2005 01:06 am, Aredridel wrote: > > The profiler identifies all the major bottlenecks as low level ruby > > methods (.each etc), so I'm considering re-implemented the guts of the > > dependency analysis in C++. I'm sure people here have done similar > > things, so I was wondering how beneficial it was for them? > > Each shows high in a profiler, because the entire contents of the inner > part of the loop count against it. Just so you're warned. So, iiuc, you're saying that the profiler sort of counts things multiple times--when you look at any individual part of the inner loop (wherever/whatever that might be), the entire time spent in that inner loop is "charged" to each individual part that you might look at? So, you really can't tell which of those parts is the biggest contributor to the (presumed) problem? Randy Kramer