diff options
| author | hallgren <hallgren@chalmers.se> | 2012-06-26 17:01:15 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2012-06-26 17:01:15 +0000 |
| commit | 241bef8a51ba18f5092d05065f3ecde60c01660f (patch) | |
| tree | 4934e112b8bf4856374a526ca695d00e3c6ecaba /gf.cabal | |
| parent | 82a5c574b6b553fb23bd47bba0fbb511a7b7d6d3 (diff) | |
Experiment with parallel grammar checks
Introduced the function
parallelCheck :: [Check a] -> Check [a]
that runs independent checks in parallel, potentially allowing faster grammar
compilation on multi-core computers, if you run gf with +RTS -N.
However, on my dual core laptop, this seems to slow down compilation somewhat
even though CPU utilization goes up as high as 170% at times.
(This is with GF compiled with GHC 7.0.4.)
Diffstat (limited to 'gf.cabal')
| -rw-r--r-- | gf.cabal | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -108,7 +108,9 @@ executable gf process, pretty, mtl, - haskeline + haskeline, + parallel + ghc-options: -threaded if flag(server) build-depends: httpd-shed, network, silently, utf8-string, json, cgi cpp-options: -DSERVER_MODE |
