Have a list of strings of the form data={{{str1,str2},{str3,str4}},…}, this list is very large, about 68 million elements. I want to compare elements str2 and str4 in each of the sublists. I wonder what would be faster/better (or if you can provide another way of doing it):
I think code 2 is more elegant, but I am interested on performance. In any case, to (try) conserve memory I am replacing the contents of data like data=OperationOn[data], is this good practice or is it better to employ something like data2=OperationOn[data] and then, possibly, Remove[data]?
They are just strings, probably no more than 15 characters long. How can I use Compile or ParallelTable in this case? I am not very familiar with those functions. What if I wrap everything inside Parallelize?