Difference between revisions of "Performance/Yhc"

From HaskellWiki
Jump to navigation Jump to search
 
Line 1: Line 1:
[[Yhc]] is not optimised for speed, and as such does not infer strictness information, and does not honour any specialise pragmas. If your program is time critical, using [[GHC]] would probably be a better bet.
+
[[Yhc]] is not optimised for speed, and as such does not infer strictness information, and does not honour any specialise pragmas. If your program is time critical, using [[GHC]] would probably be a better bet. In particular, Yhc does no inlining, so if you have a time critical inner loop and have to use Yhc, then inlining manually would probably be a good idea.
   
[[Yhc]] is optimised for small size useage, and should require less heap space than other compilers. There are no space optimisations that can be made that will help Yhc, beyond those which are useful for all Haskell compilers.
+
Yhc is optimised for small size useage, and should require less heap space than other compilers. There are no space optimisations that can be made that will help Yhc, beyond those which are useful for all Haskell compilers.

Revision as of 03:01, 15 January 2006

Yhc is not optimised for speed, and as such does not infer strictness information, and does not honour any specialise pragmas. If your program is time critical, using GHC would probably be a better bet. In particular, Yhc does no inlining, so if you have a time critical inner loop and have to use Yhc, then inlining manually would probably be a good idea.

Yhc is optimised for small size useage, and should require less heap space than other compilers. There are no space optimisations that can be made that will help Yhc, beyond those which are useful for all Haskell compilers.