Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add optimization for quote_char: nil #79
I implement #56
This implementation uses
If col_sep is a single byte blank character
CSV.parse("a b d", col_sep: " ", quote_char: nil) #=> [["a", "b", nil, "d"]]
However, when using regular expressions, it is about 1.5 times slower than using strings. The above col_sep_space is the benchmark result. Even in this case it is faster than the existing parse implementation.
Unfortunately, This implementation currently does not support stream.
benchmark result is below. 3.77x faster!