mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Perf improvements, fix regex
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user