I noticed this particular line of code when I was profiling my application (which creates a database insert boat, processing some raw data):
myStringBuilder.AppendLine(
string.Join(
BULK_SEPARATOR, new string[]{myGuid.ToString() ...
Given that the resulting line will be completed in the file called by the TSQL command BULK INSERT, is there a way to make this step faster? I know that getting a byte array is faster, but I can't just attach it to a file.
Brian source
share