branch: externals/el-job
commit 57fc053e490fd93650feb236e04122780e3484cc
Author: Martin Edström <[email protected]>
Commit: Martin Edström <[email protected]>

    Max 15 processes on Windows to prevent errors Emacs <=30
    
    The total max subprocesses is 32, according to this link:
    
    
https://github.com/emacs-mirror/emacs/commit/e02466a579a58fceda33ad51d822e39543bc883c
    
    So 15 to leave some space for other subprocesses.
---
 el-job-ng.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/el-job-ng.el b/el-job-ng.el
index 8e7e99f4d5..86b515ccf0 100644
--- a/el-job-ng.el
+++ b/el-job-ng.el
@@ -27,9 +27,10 @@
 (require 'eieio)
 
 ;; https://github.com/meedstrom/el-job/pull/5
+;; 
https://github.com/emacs-mirror/emacs/commit/e02466a579a58fceda33ad51d822e39543bc883c
 (defcustom el-job-ng-max-cores
   (max 1 (- (if (eq system-type 'windows-nt)
-                (/ (num-processors) 2)
+                (/ (min 32 (num-processors)) 2)
               (num-processors))
             1))
   "A limit on the number of subprocesses for one job.

Reply via email to