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

Improve loading/parsing speed in 'arrowable' environment #167

Open
heronshoes opened this issue Mar 31, 2023 · 2 comments
Open

Improve loading/parsing speed in 'arrowable' environment #167

heronshoes opened this issue Mar 31, 2023 · 2 comments

Comments

@heronshoes
Copy link
Contributor

heronshoes commented Mar 31, 2023

It takes a long time to read a large dataset from a source for the first time.

I created a fresh Docker environment for my dataframe example and found it very time consuming to pull a large dataset of nycflights13.

If you use red-dataset-arrow, the cache is stored in the arrow file, but the first time you load it, it takes a long time to load and parse because it uses Ruby's CSV.

Is it possible to make the environment extended with red-dataset-arrow use arrow to load and parse?

@kou
Copy link
Member

kou commented Apr 1, 2023

How about adding Datasets::CSVParser like Datasets::ZipExtractor and extending Datasets::CSVParser in red-datasets-arrow?

@heronshoes
Copy link
Contributor Author

Thanks @kou .

I will make a try to add Datasets::CSVParser first!

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

2 participants