I have the following (simplified) code which I\'d like to optimise for speed:
long inputLen = 50000000; // 50 million DataTable dataTable = new DataTable(); Dat
Instead of holding a huge data table in memory, I would suggest implementing a IDataReader which serves up the data as the bulk copy goes. This will reduce the need to keep everything in memory upfront, and should thus serve to improve performance.
IDataReader