Perf improvements, fix regex

This commit is contained in:
Matt Nadareski
2020-09-02 00:24:46 -07:00
parent 9604e16287
commit c77bcca9ad
3 changed files with 8 additions and 7 deletions

View File

@@ -767,7 +767,7 @@ namespace SabreTools.Library.DatFiles
// First do the initial sort of all of the roms inplace
List<string> oldkeys = Keys.ToList();
for (int k = 0; k < oldkeys.Count; k++)
Parallel.For(0, oldkeys.Count, Globals.ParallelOptions, k =>
{
string key = oldkeys[k];
@@ -793,7 +793,7 @@ namespace SabreTools.Library.DatFiles
// If the key is now empty, remove it
if (this[key].Count == 0)
Remove(key);
}
});
}
// If the merge type isn't the same, we want to merge the dictionary accordingly