Commit 6a36797e authored by Alexandre Delanoë's avatar Alexandre Delanoë

[CLI] mapConcurrently.

parent ef1ceba3
......@@ -30,7 +30,7 @@ import Data.Text (Text)
import Data.List (cycle)
import System.IO (hPutStr, hFlush, stderr)
import System.Environment
--import Control.Concurrent.Async as CCA (mapConcurrently)
import Control.Concurrent.Async as CCA (mapConcurrently)
import Gargantext.Prelude
import Gargantext.Text.Context
......@@ -68,7 +68,8 @@ main = do
putStrLn $ show $ length termList
let patterns = WithList $ buildPatterns termList
corpusIndexed <- mapMP (terms patterns) corpus
--corpusIndexed <- mapMP (terms patterns) corpus
corpusIndexed <- mapConcurrently (terms patterns) corpus
mapM (putStrLn . show) corpusIndexed
let myCooc = coocOn identity corpusIndexed
......
......@@ -160,6 +160,7 @@ executables:
- -O2
- -Wmissing-signatures
dependencies:
- async
- base
- containers
- gargantext
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment