We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0b48e5 commit a4bac8eCopy full SHA for a4bac8e
exercises/practice/parallel-letter-frequency/.meta/example.el
@@ -24,7 +24,7 @@
24
(let ((cleaned-texts (mapcar #'clean-text texts)))
25
(if (cl-every #'string-empty-p cleaned-texts)
26
(make-hash-table :test 'equal)
27
- (let* ((num-processes (min (length cleaned-texts) (max 1 (string-to-number (shell-command-to-string "nproc")))))
+ (let* ((num-processes (min (length cleaned-texts) 8 (max 1 (string-to-number (shell-command-to-string "nproc")))))
28
(texts-per-process (ceiling (/ (float (length cleaned-texts)) num-processes)))
29
(results (make-hash-table :test 'equal))
30
(pending num-processes)
0 commit comments