From: Martin DeMello Date: 2006-11-27T02:40:28+09:00 Subject: Re: find index of first non zeo value in array On 11/26/06, dblack@wobblini.net wrote: > > This exchange relates to something I've been pondering for a while, > namely: is there always (or very, very often) an inverse relation > between elegance of code and efficiency? I don't mean to sound like > I'm singling out your example -- on the contrary, it seems that over > and over we see cases where a nice concise solution bombs out compared > to one that's longer, possibly less clear (I still can't read the > enum* stuff as quickly and confidently as I can read the regular > Enumerable stuff, though that may just be due to stupidity), but > faster. Seems to be a general symptom of everything being optimised to run C code - the C-like solutions win out. m.