-
Notifications
You must be signed in to change notification settings - Fork 18
fix: improve netzschleuder internals #40
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
Conversation
maelle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some unsollicited feedback 😸
|
Thank you! I will have a look at this soonish (I actually forgot about this PR...) |
Co-authored-by: Maëlle Salmon <[email protected]>
krlmlr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. What would it take to stream the data and not load it into memory all at once?
R/netzschleuder.R
Outdated
| gprops_df <- readLines(con_gprops) | ||
|
|
||
| on.exit(close(con_edge)) | ||
| on.exit(close(con_nodes)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these on.exit() calls belong just after the connection is opened, to guard against premature exits.
|
Ah forgot that part! I look into it |
|
@krlmlr |
krlmlr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better indeed!
Co-authored-by: Kirill Müller <[email protected]>
fix #38