From: Stephen Waits Date: 2006-03-11T14:04:13+09:00 Subject: Re: Help me understand why the Ruby block is slower than wit --Apple-Mail-3-537470167 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Mar 10, 2006, at 4:08 PM, Alan Burch wrote: > My current fastest script: > > f= File.open("./words") > begin > while w = f.gets > puts w if w.size == 11 && w.split(//).uniq! == nil > end > rescue EOFError > f.close > end > > Not measurably faster than the first one, but seems better and more > Ruby > like to me. I'm curious why you see it so? Personally, seems less Ruby-like to me. --Steve --Apple-Mail-3-537470167 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEElo2nnOWIarjHBkRAk2tAJ9kWfQ6/DCBzS1yIhJGvvYLBgqRKACfYFqu HEIG8R/MiKLk5cM9rxzWerE= =qJM9 -----END PGP SIGNATURE----- --Apple-Mail-3-537470167--