Skip to content

Commit 62e5fa3

Browse files
committed
Run for module generation in parallel
1 parent a58d5b4 commit 62e5fa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/ddox/htmlgenerator.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,11 @@ void generateHtmlDocs(Path dst_path, Package root, GeneratorSettings settings =
187187

188188
void visitPackage(Package p, Path path)
189189
{
190+
import std.parallelism : parallel;
190191
auto packpath = p.parent ? path ~ PathEntry(p.name) : path;
191192
if( !packpath.empty && !existsFile(packpath) ) createDirectory(packpath);
192193
foreach( sp; p.packages ) visitPackage(sp, packpath);
193-
foreach( m; p.modules ) visitModule(m, packpath);
194+
foreach( m; p.modules.parallel(1) ) visitModule(m, packpath);
194195
}
195196

196197
dst_path.normalize();

0 commit comments

Comments
 (0)