File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ function loadDFG!(
168
168
varFiles = sort (readdir (varFolder; sort = false ); lt = natural_lt)
169
169
factorFiles = sort (readdir (factorFolder; sort = false ); lt = natural_lt)
170
170
171
- packedvars = @showprogress 1 " loading variables" map (varFiles) do varFile
171
+ packedvars = @showprogress 1 " loading variables" asyncmap (varFiles) do varFile
172
172
jstr = read (" $varFolder /$varFile " , String)
173
173
return JSON3. read (jstr, PackedVariable)
174
174
end
@@ -185,7 +185,7 @@ function loadDFG!(
185
185
# Adding variables
186
186
map (v -> addVariable! (dfgLoadInto, v), variables)
187
187
188
- packedfacts = @showprogress 1 " loading factors" map (factorFiles) do factorFile
188
+ packedfacts = @showprogress 1 " loading factors" asyncmap (factorFiles) do factorFile
189
189
jstr = read (" $factorFolder /$factorFile " , String)
190
190
return JSON3. read (jstr, PackedFactor)
191
191
end
You can’t perform that action at this time.
0 commit comments