Is your feature request related to a problem? Please describe.
Try to optimize the log data comparison by setting up multiple threads. The CompareLogDataWorker.cs currently compares each mnemonic sequentially, which may not be the most efficient method.
Describe the solution you'd like
I want the worker to compare data for each mnemonic concurrently, by using the WhenAll() method on line 79 in the CompareLogDataWorker.cs.
Some pseudocode for a possible solution:
var tasks = new List<Task<List<CompareLogDataItem>>();
foreach (var item in items)
{
var task = Add.Data()
tasks.Add(task);
}
var myResults = await Task.WhenAll(tasks);
As discussed with Stian, we should set a limit to the number of concurrent calls in order to avoid overloading both the server and the API memory usage.
Is your feature request related to a problem? Please describe. Try to optimize the log data comparison by setting up multiple threads. The CompareLogDataWorker.cs currently compares each mnemonic sequentially, which may not be the most efficient method.
Describe the solution you'd like I want the worker to compare data for each mnemonic concurrently, by using the
WhenAll()
method on line 79 in the CompareLogDataWorker.cs.Some pseudocode for a possible solution: