Problem: Very very, large file I need to parse line by line to get 3 values from each line. Everything works but it takes a long time to parse through the whole file. Is it poss
Instead of recreating a regex for each call to GetRateLine
, create it in advance, passing the RegexOptions.Compiled
option to the Regex(String,RegexOptions) constructor.
You may also want to try reading in the entire file to memory, but I doubt that's your bottleneck. It shouldn't take a minute to read in ~100MB from disk.