Open YuriRomanowski opened 1 year ago
I uploaded some commits where different variations of xrefcheck can be load-tested (in branch YuriRomanowski/#247-parallelize-file-parsing-scaffolding):
master
) with lazy readFile
: 2a959d0283ecd5548e822e78ff99d19832c9766dreadFile
with strict one: b3368c36945016c8ff59ceee868c21e89ccbad35Eval
monad: a1d5f568f098db2c1882249089a41735062e849bmapConcurrently
: 8f6537431a9cfec744036b053c45f92ac8bfd259
The latter two ones produce similar results.Thanks for this investigation!
I tried, and from what I can see:
(the selected area corresponds to repo scanning time)
Although I'm not exactly sure why "Activity" graph at the top shows so few CPU feed.
Clarification and motivation
This topic is a part of #221. After we read file contents, we should perform parsing of the files, which is (in theory) pure action and can be parallelized. But we use C library under the hood, so the parallelization may be tricky. Here we can try some approaches and discuss results.
Acceptance criteria