Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: Probably just use Sep instead #28

Open
airbreather opened this issue Jan 13, 2024 · 0 comments
Open

Notice: Probably just use Sep instead #28

airbreather opened this issue Jan 13, 2024 · 0 comments

Comments

@airbreather
Copy link
Owner

Even in the use cases that spawned this library, Sep seems to be more efficient than Cursively in practically every way. Specifically, Sep has a reader benchmark that it calls "Floats", and the best Cursively implementation I could come up with quickly is quite a bit slower, though Cursively still had a significant (relative) edge in heap allocations.

Even with heap allocations, despite Cursively's massive lead (relatively speaking), it's still just a difference of a few kilobytes for tens of thousands of rows (contrast with CsvHelper, where even recent versions allocate about a couple dozen megabytes), and those few kilobytes should certainly be low enough for any imaginable use case.

There are some techniques that I could use to close the gap in newer .NET versions, but honestly, I just don't feel like it. Sep's "Floats" benchmark runs at like 1 GiB/s, so as far as I'm concerned, it's just not worth my time to improve on that. Especially since even in the best-case scenario for Cursively, the usability is just horrendous.

@airbreather airbreather pinned this issue Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant