summaryrefslogtreecommitdiff
path: root/gf.cabal
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-06-26 17:01:15 +0000
committerhallgren <hallgren@chalmers.se>2012-06-26 17:01:15 +0000
commit241bef8a51ba18f5092d05065f3ecde60c01660f (patch)
tree4934e112b8bf4856374a526ca695d00e3c6ecaba /gf.cabal
parent82a5c574b6b553fb23bd47bba0fbb511a7b7d6d3 (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.cabal4
1 files changed, 3 insertions, 1 deletions
diff --git a/gf.cabal b/gf.cabal
index 4cbc24a96..ae1d73774 100644
--- a/gf.cabal
+++ b/gf.cabal
@@ -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