Sylvan
CsvBenchmarks
Sylvan | CsvBenchmarks | |
---|---|---|
10 | 12 | |
334 | 14 | |
- | - | |
7.5 | 5.4 | |
10 days ago | 21 days ago | |
C# | C# | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Sylvan
-
Reading CSV 180k records - Calculate something within 60 second time while grouping
A while back I needed to process CSV with millions of records in a timescale of seconds. Sylvan Data was the best fit in terms of speed and memory efficiency. It might help you. https://github.com/MarkPflug/Sylvan
-
CSV reader recommendations...
I maintain a couple libraries that aim to provide similar functionality to MTD: Sylvan.Data and Sylvan.Data.Csv.
-
Any tips on converting a XLSX file to HTML without using a licensed library?
Here is a simple, complete gist showing how to turn a DbDataReader into an HTML table. The WriteHtmlTable extension method can be used with any ADO.NET compatible driver, which the Sylvan.Data.Excel and Sylvan.Data.Csv libraries both support.
-
Need some help/direction reading CSV into MySQL without duplication
I maintain a couple libraries that can help with reading the data files: Sylvan.Data.Csv and Sylvan.Data.Excel. I see no reason to not allow users to provide whichever format is convenient for them.
-
How would I go about parsing a CSV like file that uses "SPACE" as delimiter and other quirks.
I maintain a CSV library, Sylvan.Data.Csv, that shouldn't have any issue parsing this. You'll need to explicitly specify that space (' ') is the delimiter.
- How do I get Excel column data type with OpenXml?
-
Read uploaded excel file
Here is a some sample code of how to echo the contents of an Excel spreadsheet as CSV to the client browser using my libraries Sylvan.Data.Excel and Sylvan.Data.Csv:
-
TimeThis! - Simple timings for code blocks (Fun with IDisposable)
``` For reference, my implementation is here.
-
Microsoft .net XLSX to CSV library?
I maintain a couple libraries that should make this quite easy: Sylvan.Data.Csv, and Sylvan.Data.Excel. They are both open-source and MIT licensed. They are also both fastest-in-class at their particular tast.
-
Using C# StreamReader in System.IO, I am able to read external .csv data and visualise the hell out of it in my C# app (CLUBASID).
Personally, I'd recommend Sylvan.Data.Csv, but being the author I'm probably a bit biased. Here is some CSV performance analysis that Joel Verhagen did for .NET libraries recently.
CsvBenchmarks
-
CSV reader recommendations...
The Sylvan.Data.Csv library is also the fastest CSV parser for .NET, and can load data about 3x faster than MTD based on my limited testing.
-
What's the best way to read an Excel file into a DataGrid in WinUi 3?
I don't want to disparage NPOI, because I'm sure it's great for its primary use-case, which is creating/editing spreadsheets. However, from a performance perspective it is one of the slowest libraries for reading Excel data in .NET. Since the OP seemed to be very concerned about performance and only needs to read data, this probably isn't the best choice.
-
Help needed with .xlsb files
I'm pretty sure NPOI doesn't support .xlsb. At least it didn't the last time I updated my benchmarks: https://github.com/MarkPflug/Benchmarks/blob/main/docs/ExcelBenchmarks.md
-
How would I use an Excel file as Data Source for SQLite connection?
If you're trying to load an Excel worksheet into a DataTable, I maintain a library that can make this quite easy: Sylvan.Data.Excel. It is available as a nuget package, open source, MIT licensed, and the fastest Excel reader for .NET.
-
How to convert an Excel file to Data table
I maintain a library, Sylvan.Data.Excel that might work for you. I claim it is the fastest Excel library in the .NET ecosystem. It is open source and MIT licensed, so feel free to use it however you wish. It has no external dependencies other than .NET itself.
-
Read .xls, .xlsx files using interop and import to datatable
It provides a forward only data reader (DbDataReader) for all common excel formats (.xlsx, .xlsb, and .xls). It is the fastest and lowest allocating Excel reader in the .NET ecosystem.
-
Read uploaded excel file
This one is one that I personally maintain: Sylvan.Data.Excel It isn't fully featured, but it is the fastest that I'm aware of.
-
Microsoft .net XLSX to CSV library?
I maintain a couple libraries that should make this quite easy: Sylvan.Data.Csv, and Sylvan.Data.Excel. They are both open-source and MIT licensed. They are also both fastest-in-class at their particular tast.
-
Read Excel file in .NET 6 deployed on Linux?
It isn't exactly a full-featured library, but it is cross-platform and is the fastest and lowest allocating Excel reader that I'm aware of for .NET. That might not be a huge concern if you're just processing the occasional file.
-
The Fastest Csv Parser In Net
Thanks for this -- I've pushed a PR that corrects a slight incorrectness issue that biased the results in Cursively's favor, uses the original byte array directly instead of needlessly wrapping it in a MemoryStream, and uses the same optimization that you used to make SylvanSimplePool win in its category. CursivelyCsv is now the winner on my machine in this category when doPooling is on.
What are some alternatives?
Sylvan.Data.Excel - The fastest .NET library for reading Excel data files.
ExcelMapper - An Excel to object mapper. Maps POCOs to and from Excel. Configuration via convention, attributes, or fluent methods.
CsvExport - Very simple CSV-export tool for C#
ClosedXML - ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
Cinchoo ETL - ETL framework for .NET (Parser / Writer for CSV, Flat, Xml, JSON, Key-Value, Parquet, Yaml, Avro formatted files)
CsvHelper - Library to help reading and writing CSV files
Open XML SDK - Open XML SDK by Microsoft
Cursively - A CSV reader for .NET. Fast, RFC 4180 compliant, and fault tolerant. UTF-8 only.
ExcelDataReader - Lightweight and fast library written in C# for reading Microsoft Excel files
NPOI - a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.
EPPlus