I have 2 data-tables which i need to compare and get the result in different table.Almost i am comparing 1000 records and it takes 2 minutes for doing comparison and get the result.I am using for loop.
Is there any other way i can optimize the for loop and reduce the processing time.
Ex : for (int i = 0; i < dt1.Rows.Count; i++)
{
for (int j = 0; j < _dt2.Count; j++)
{
//Process
}
}
Loading
Khargesh RajputPosted Feb 10, 2015, 3:32 AM
Javeed M ShaikhPosted May 1, 2013, 12:31 PM
Nishanthan GaneshanPosted May 1, 2013, 11:55 AM
Nishanthan GaneshanPosted Apr 24, 2013, 4:00 PM
Javeed M ShaikhPosted Apr 24, 2013, 3:46 PM
Nishanthan GaneshanPosted Apr 24, 2013, 3:43 PM
Javeed M ShaikhPosted Apr 24, 2013, 2:11 PM
Nishanthan GaneshanPosted Apr 24, 2013, 1:58 PM
Javeed M ShaikhPosted Apr 24, 2013, 12:23 PM
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/23703a85-20c7-4759-806a-fabf4e9f5be6
Nishanthan GaneshanPosted Apr 24, 2013, 11:59 AM
Javeed M ShaikhPosted Apr 24, 2013, 11:53 AM