From afae4dce33708473d2b85b7acd5a0bf074f679f7 Mon Sep 17 00:00:00 2001
From: Ralph Amissah <ralph@amissah.com>
Date: Tue, 31 Jul 2018 10:44:56 -0400
Subject: 0.27.0 parallelize doc processing

- std.parallelism
---
 org/sdp.org | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'org')

diff --git a/org/sdp.org b/org/sdp.org
index 83e0b4e..ea8a4bf 100644
--- a/org/sdp.org
+++ b/org/sdp.org
@@ -26,7 +26,7 @@ struct Version {
   int minor;
   int patch;
 }
-enum ver = Version(0, 26, 6);
+enum ver = Version(0, 27, 0);
 #+END_SRC
 
 ** compilation restrictions (supported compilers)
@@ -70,6 +70,7 @@ import
   sdp.conf.compile_time_info,
   sdp.meta.metadoc;
 <<imports_sdp>>
+import std.parallelism;
 <<mixin_sdp_version>>
 <<mixin_pre_main>>
 /++
@@ -82,7 +83,7 @@ void main(string[] args) {
   <<sdp_args>>
   <<sdp_do_selected>>
   if (_manifests.length > 1) { // _manifests[0] initialized dummy element
-    foreach(manifest; _manifests[1..$]) {
+    foreach(manifest; parallel(_manifests[1..$])) {
       if (!empty(manifest.src.filename)) {
         <<sdp_each_file_do_scope>>
         <<sdp_each_file_do_abstraction>>
@@ -95,8 +96,6 @@ void main(string[] args) {
     }
   }
 }
-unittest {
-}
 #+END_SRC
 
 ** 1. pre-loop init                                                   :init:
-- 
cgit v1.2.3