[racket] How can I speed up this code?

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Mon Jan 14 16:06:00 EST 2013

On Mon, Jan 14, 2013 at 3:59 PM, Danny Yoo <dyoo at hashcollision.org> wrote:
>
> 1.  First, pull all the content of the input port into a string port.
> This cut down the runtime from 52 seconds to 45 seconds.  (15%
> improvement)

I find it hard to believe that this is a good idea.  In particular, it
vastly increases the memory use required to parse, as well as
requiring two passes over the input, whereas previously only one was
required.

Sam

Posted on the users mailing list.