[DatFile] Fix some parallelization

This commit is contained in:
Matt Nadareski
2017-03-02 12:25:05 -08:00
parent 082599111d
commit eff85278d3
3 changed files with 91 additions and 81 deletions

View File

@@ -100,8 +100,7 @@ namespace SabreTools.Helper.Dats
DateTime start = DateTime.Now;
Globals.Logger.User("Processing individual DATs");
// TODO: Can parsing headers be separated from parsing content?
// TODO: Can all DATs be parsed into the same structure in one loop?
// Parse all of the DATs into their own DatFiles in the array
Parallel.For(0,
inputs.Count,
new ParallelOptions { MaxDegreeOfParallelism = Globals.MaxDegreeOfParallelism },