>Running the programs compiled with ghc-4 (several examples), i have
>noticed that it pretends to spend thousands of space less than
>ghc-3.02. Typically,
>
>ghc-3.02 with +RTS -H100k -K9k runs as fast as
>ghc-4 with +RTS -K4
>
>According to 4-00-notes.vsgml, the latter -K4 means that the task
>is performed within 4 bytes of heap+stack space.
>
>This might happen, maybe, for sum [1..1000], but for the real
>examples, it is somehow suspicious.
>Could anybody tell, what does -K4 mean in time ./run +RTS -K4
>in ghc-4?
>The whole test was to see, how the small space slows down the
>performance. And it appears it does not value any :-)
I think someone mentioned that GHC 4 can now increase heap size dynamically, so I
assume that -H is just a starting size or a "hint". Dunno about stack, though...
--FC