Closed AnthonyLloyd closed 3 years ago
This looks awesome, I'll add it to the battery of tests. Thanks!
Is this your code? Is it available on nuget.org? I can drop it in by copying code and crediting you in this issue, as appropriate.
It's just something I've always used. Not NuGet yet. I may be interested in over optimising it a bit maybe on the buffering.
Shouldn't the buffer in TextReader
implementations (e.g. StreamReader
) be enough? I've noticed other CSV implementations on top of TextReader
have their own buffers which seems a bit redundant. But then again, I just tested the perf and haven't thought deeply about it 😅.
Benchmarking it looks like it's not so good. Twice as slow as string.Split. Not sure why. Makes you think you should keep your benchmarks around.