use number of cores for parallel render

pull/155/head
Matthew Butterick 7 years ago
parent 25ca9e9426
commit bc30276c79

@ -6,7 +6,7 @@
(unless (and (path-string? starting-dir) (directory-exists? starting-dir))
(error 'preheat-cache (format "~a is not a directory" starting-dir)))
(define max-places 8) ; number of parallel processes to spawn at a time
(define max-places (processor-count)) ; number of parallel processes to spawn at a time
(define paths-that-should-be-cached (for/list ([path (in-directory starting-dir)]
#:when (for/or ([proc (in-list (list preproc-source?

@ -1 +1 @@
1502144359
1502226726

Loading…
Cancel
Save