cli.git: Use number of threads not cpus.
parent
7a554e302f
commit
c7abd13d33
|
@ -2,11 +2,11 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: arrays concurrency.combinators concurrency.semaphores fry
|
USING: arrays concurrency.combinators concurrency.semaphores fry
|
||||||
io.directories io.files.info io.launcher io.pathnames kernel
|
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
|
IN: cli.git
|
||||||
|
|
||||||
SYMBOL: cli-git-num-parallel
|
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-as ( ssh-url path -- process )
|
||||||
[ { "git" "clone" } ] 2dip 2array append run-process ;
|
[ { "git" "clone" } ] 2dip 2array append run-process ;
|
||||||
|
@ -34,4 +34,3 @@ cli-git-num-parallel [ cpus 2 * ] initialize
|
||||||
_ [ update-repository ] with-semaphore
|
_ [ update-repository ] with-semaphore
|
||||||
] parallel-each
|
] parallel-each
|
||||||
] with-ensure-directory ;
|
] with-ensure-directory ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue