Does any one know of a faster method to do String.Split()?

后端 未结 14 1187
傲寒
傲寒 2020-12-03 10:57

I am reading each line of a CSV file and need to get the individual values in each column. So right now I am just using:

values = line.Split(delimiter);
         


        
14条回答
  •  不思量自难忘°
    2020-12-03 11:18

    Some very thorough analysis on String.Slit() vs Regex and other methods.

    We are talking ms savings over very large strings though.

提交回复
热议问题