From c7abd13d33dd0c386661a9cae6ca32b37369978d Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Thu, 17 Aug 2017 20:35:44 -0500 Subject: [PATCH] cli.git: Use number of threads not cpus. --- extra/cli/git/git.factor | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extra/cli/git/git.factor b/extra/cli/git/git.factor index a05ebc0c63..7b4585d726 100644 --- a/extra/cli/git/git.factor +++ b/extra/cli/git/git.factor @@ -2,11 +2,11 @@ ! See http://factorcode.org/license.txt for BSD license. USING: arrays concurrency.combinators concurrency.semaphores fry io.directories io.files.info io.launcher io.pathnames kernel -math namespaces sequences splitting system-info ; +math namespaces sequences splitting system-info.linux ; IN: cli.git SYMBOL: cli-git-num-parallel -cli-git-num-parallel [ cpus 2 * ] initialize +cli-git-num-parallel [ hyperthreads 2 * ] initialize : git-clone-as ( ssh-url path -- process ) [ { "git" "clone" } ] 2dip 2array append run-process ; @@ -34,4 +34,3 @@ cli-git-num-parallel [ cpus 2 * ] initialize _ [ update-repository ] with-semaphore ] parallel-each ] with-ensure-directory ; -