Hi EE, I have a vb.net form that has 2 FOR Loops and inside the first loop i have a Query LINQ that get some information ....
bottom line... its really slow... it could take something like 45 minutes to compute everything....
I am not aware of new ways of coding that could speed up this. for example, i just learned about PLINQ but would that help me, i dont know..is there anything
my code is the follwing :
For x As Integer = 0 To last.Count - 1 (which is about 2415 loops)
'MyItems has about 8900 items in it, its a dictionnary of Date, String
'q will always ahve about between 600 to 700 items in it....
Dim q = (From m In MyItems
Where arrString.All(Function(v) m.Value.Contains(v))
For y As Integer = 0 To q.Count - 1
If y + 1 < q.Count Then
listDiff.Add(DateDiff(DateInterval.Day, q(y).Key, q(y + 1).Key))
so this is the code I was talking about... and its long... any idea how I could speed up by minutes ?