]> gitweb.factorcode.org Git - factor.git/commitdiff
cli.git: Use number of threads not cpus.
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 18 Aug 2017 01:35:44 +0000 (20:35 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 18 Aug 2017 02:37:58 +0000 (21:37 -0500)
extra/cli/git/git.factor

index a05ebc0c6333a415b2b38f2f25a2be6ec90131f8..7b4585d726a373b7d4b81987e7fd327d91a8c835 100644 (file)
@@ -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 ;
-