[MLton] new TextIO

Henry Cejtin henry@sourcelight.com
Thu, 15 Jan 2004 09:45:46 -0600

What I did was to take the top-level function I didn't want to be inlined
(say f) and simply add the following top-level code:

        val _ =
               if length (CommandLine.arguments ()) > 1000000
                  then (f some-arg; f some-arg; ...; f some-arg)
                  else ()

which should take some code space, and add a single test to the time, but
have no extra cost.