[Haskell-cafe] In-place modification

Isaac Gouy igouy2 at yahoo.com
Mon Jul 16 16:29:26 EDT 2007


On Jul 15, 1:25 pm, "Hugh Perkins" <hughperk... at gmail.com> wrote:

> > or maybe 'pidigits', a lazy pi generator,

> This is I/O bound, which isnt interesting, unless you really want to
> benchmark I/O to console?


a) output is redirected to /dev/null - read the FAQ

b) the I/O is cheap

delete
   PiDigitSpigot class
and change
   Console.Write (digits.Next ());
to
   Console.Write (1);

~0.15s down from ~12.8s 


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 


More information about the Haskell-Cafe mailing list