Hello Jordi,

you found a bug. Your number makes my code enter into an infinite
loop. I'll fix it and repost.

Thanks,

Brian


On Tue, 22 Feb 2005 06:26:16 +0900, Jordi Bunster <jordi / bunster.org> wrote:
> 
> On Feb 20, 2005, at 3:50 PM, Brian Schröäer wrote:
> 
> > This version loads the dictionary a lot faster (3 times as fast as the
> > old
> > version) because it does not create as many intermediate objects. Also
> > I measured that upcasing and gsub'ing is faster on the long string
> > than on the individual short strings.
> 
> Must be something wrong with my old iBook, because here it takes
> aaaaages for anything to even appear.
> 
> Makes me wonder if I'm running it correctly:
> 
> echo 5467945 | ruby phoneword.rb -v -p -s -d /usr/share/dict/words
> 
> Or is the problem just that I/O intensive?
> 
> --
>         Jordi
> 
>