summaryrefslogtreecommitdiff
path: root/src/Index.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-08-02 21:19:10 +0200
committerTom Smeding <tom@tomsmeding.com>2026-08-02 21:21:54 +0200
commit6e8c2b8df3898d0f50463f3151831f5d7c9306a2 (patch)
tree0964eb6afd22d8c3739cbf3c66eb6c3798195c0a /src/Index.hs
parentfaff2c8249b1cc0342867dd22774301ae980647c (diff)
Index logs in parallel
Diffstat (limited to 'src/Index.hs')
-rw-r--r--src/Index.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Index.hs b/src/Index.hs
index 81eb5f2..ee3cdaf 100644
--- a/src/Index.hs
+++ b/src/Index.hs
@@ -56,6 +56,7 @@ import Cache
import Config (Channel(..), prettyChannel)
import ImmutGrowVector qualified as IGV
import Mmap
+import Parallel
import Util
import ZNC.Parser
@@ -151,7 +152,7 @@ initIndex basedir toimport = do
let nw = T.unpack nwT
ch = T.unpack chT
files <- listDirectory (basedir </> nw </> ch)
- days <- fmap sort . forM (sort files) $ \fn -> do
+ days <- fmap sort . parallelForM (sort files) $ \fn -> do
-- atomicPrintS $ " -> " ++ fn
let path = basedir </> nw </> ch </> fn
date = case parseFileName fn of