From: Randy Kramer Date: 2005-04-05T06:34:27+09:00 Subject: Re: Ruby optimization - re-implement in compiled language? On Monday 04 April 2005 09:29 am, Robert Klemme wrote: > "Randy Kramer" schrieb im Newsbeitrag > > So, you really can't tell which of those parts is the biggest > > contributor to the (presumed) problem? ------ > Then if you iterate only once through any Enumerable then #each shows up > as 1 call - which can be confusing. But it's completely logical since > it's actually called only once. Just the block is invoked multiple times. > So, assuming that you have a lot of stuff going on in a block, that time > can be seen nowhere else than within the time of #each - there's no extra > marker for the block. Of course you'll see times of methods that are > called from the block on rows of their own. Thanks! (I may need to read this and run the profiler a fewtimes to really absorb this, but I think I have the gist of it.) regards, Randy Kramer