From bc30276c798ca46d75968926c48644e0792bd47b Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Tue, 8 Aug 2017 14:12:06 -0700 Subject: [PATCH] use number of cores for parallel render --- pollen/private/preheat-cache.rkt | 2 +- pollen/private/ts.rktd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pollen/private/preheat-cache.rkt b/pollen/private/preheat-cache.rkt index acb634b..08e86a7 100644 --- a/pollen/private/preheat-cache.rkt +++ b/pollen/private/preheat-cache.rkt @@ -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? diff --git a/pollen/private/ts.rktd b/pollen/private/ts.rktd index 8761e99..a96ece6 100644 --- a/pollen/private/ts.rktd +++ b/pollen/private/ts.rktd @@ -1 +1 @@ -1502144359 +1502226726