I am using Fuzzy logic to match certain value from a text. For that, I am using nested For each Loop. But it is taking too much time.
ArrOfStr count is 30 and ArrOfOCR count is 2080.
Total No. of iterations = 30*2080 = 62400
Per iteration, it is taking 4 milliseconds. That amounts to 249 sec = 4 mins (which is huge time)
So ur getting a text, and u want to know if that text is present in a collection?
Sounds like u want to use a dictionary for constant O(1) lookup, it will be a lot faster than iterating a collection. Keep in mind ur dictionary has overhead when creating it so perhaps create the dictionary in init so u don’t recreate it for every transaction.
How about using InvokeCode activity or Coded Automation (and write your logic as code). It will reduce overhead of processing activities.
And if you run as debug mode, can you try just run?