Closed Shians closed 3 years ago
Hi, many thanks for your suggestions and very sorry for a late reply. Could you please create a pull request with the suggested changes and we will merge it to master? Thanks again, Vlad
@Shians See https://github.com/hemberg-lab/SC3/pull/104
Very nice! Glad to see such a clean revamp of the parallelism.
By default
parallel::makeCluster()
usestype = "PSOCK"
for its parallelism. But changing the type to"FORK"
is more efficient on non-Windows systems. I suggest wherevermakeCluster()
is used the code be changed toThis also significantly reduces memory usage on systems where forking is available.
With my quick testing of 300 cells with 5000 genes and
ks = 1:10
I saw the PSOCK version taking ~90 seconds and the FORK version taking ~60 seconds.The downside would be that forks do not parallelise across clusters.