Browse Source

Moved compile_object outside of mutex lock to improve parallelism

cl-test
Rick Richardson 7 years ago
parent
commit
2b1ce98364
  1. 3
      src/lib.rs

3
src/lib.rs

@ -823,7 +823,8 @@ impl Build {
objs.par_iter().with_max_len(1).for_each(
|&(ref src, ref dst)| {
results.lock().unwrap().push(self.compile_object(src, dst))
let res = self.compile_object(src, dst);
results.lock().unwrap().push(res)
},
);

Loading…
Cancel
Save