Changes between Version 9 and Version 10 of FAQ


Ignore:
Timestamp:
Jan 9, 2006 3:35:45 PM (8 years ago)
Author:
guest
Comment:

add "+RTS -A10m" to speed up GC

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v9 v10  
    271271 
    272272probably indicates that when building a library for GHCi ({{{HSfgl.o}}} in the above example), you should use the {{{-x}}} option to {{{ld}}}. 
     273 
     274 
     275= Optimization issues = 
     276 
     277== My program spent too much time doing garbage collection == 
     278 
     279Add the "+RTS -A10m" option to the command line when you run your program. This should sufficiently decrease GC times. You can also add to your program C module containing statement  
     280 
     281{{{ 
     282char *ghc_rts_opts = "-A10m"; 
     283}}} 
     284 
     285to force your program use this setting on each run