From: "David A. Black" Date: 2005-08-14T12:54:55+09:00 Subject: Re: no clue --8323328-731294882-1123991692=:26601 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-731294882-1123991692=:26601" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-731294882-1123991692=:26601 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi -- On Sun, 14 Aug 2005, [ISO-8859-1] Simon Kr=F6ger wrote: > > data.each{ |j, line| > k, v =3D -2, 0 > while (v =3D line.index(58, k)) > h5[j][line[(k+2)...v].intern] =3D > line[(v+2)...(k =3D line.index(44, v) || line.length)] > end > } > > One is loosing readability of code if optimizing for speed > has top priority - even in ruby. Would you lose much speed if you did ?: and ?, ? :-) It's interesting though -- I remember the long thread back in 2000 or 2001 about finding anagrams. The fastest one, I seem to recall, used pack/unpack (I can't remember the details, though I believe I wrote it), and raised similar issues. David --=20 David A. Black dblack@wobblini.net --8323328-731294882-1123991692=:26601-- --8323328-731294882-1123991692=:26601--