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

Refactor again CSV reading #474

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Refactor again CSV reading #474

merged 1 commit into from
Nov 8, 2023

Conversation

etiennebacher
Copy link
Collaborator

Following #471

Comment on lines +249 to +252
# do nothing let path fail on rust side
if (is.na(path)) {
return(NULL)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, NA goes through all the code about connections (without erroring), which is surprisingly slow. Better to have an early exit here

Copy link
Collaborator

@eitsupi eitsupi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eitsupi eitsupi merged commit d5f3561 into main Nov 8, 2023
30 of 31 checks passed
@eitsupi eitsupi deleted the refactor-csv-rust branch November 8, 2023 14:32
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

Successfully merging this pull request may close these issues.

None yet

2 participants