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

Performance of CSV writer #564

Open
Arlofin opened this issue Apr 25, 2024 · 1 comment
Open

Performance of CSV writer #564

Arlofin opened this issue Apr 25, 2024 · 1 comment

Comments

@Arlofin
Copy link
Contributor

Arlofin commented Apr 25, 2024

The CSV export of data frames (via method SaveCsv) is very slow.
As an example out of my practice (based on v3.0.0): A 50,000 x 100 data frame with a resulting CSV file of 20mb size took 1min 20 secs to produce on my system. Column Types are 2/3 numbers (some integer, some double precision float) and 1/3 a two-valued discriminated union.

@Arlofin
Copy link
Contributor Author

Arlofin commented Apr 26, 2024

I figured it out: The default implementation of ToString() for DUs is very slow. After overriding it with a custom implementation, the previously mentioned data frame serializes in 6 seconds. This is still not impressive (around 3mb/sec), but at least makes it usable.

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