Skip to content

fix: improve netzschleuder internals - #40

Merged
schochastics merged 9 commits into
mainfrom
ns_improve
Jun 2, 2025
Merged

schochastics merged 9 commits into
mainfrom
ns_improve

Conversation

@schochastics

Copy link
Copy Markdown
Contributor

fix #38

@maelle maelle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some unsollicited feedback 😸

Comment thread R/netzschleuder.R Resolved
Comment thread R/netzschleuder.R Resolved
Comment thread R/netzschleuder.R Resolved
Comment thread R/netzschleuder.R Resolved
Comment thread R/netzschleuder.R Resolved
Comment thread R/netzschleuder.R Resolved
@schochastics

Copy link
Copy Markdown
Contributor Author

Thank you! I will have a look at this soonish (I actually forgot about this PR...)

schochastics and others added 2 commits May 24, 2025 20:54
Co-authored-by: Maëlle Salmon <maelle.salmon@yahoo.se>
@schochastics
schochastics requested review from krlmlr and maelle May 31, 2025 18:33

@krlmlr krlmlr left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread R/netzschleuder.R Outdated
gprops_df <- readLines(con_gprops)

on.exit(close(con_edge))
on.exit(close(con_nodes))

Copy link
Copy Markdown
Contributor

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.

@schochastics

Copy link
Copy Markdown
Contributor Author

Ah forgot that part! I look into it

@schochastics

Copy link
Copy Markdown
Contributor Author

@krlmlr req_perform has a path argument that rights the body directly to disk. That should be enough, or?

@krlmlr krlmlr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Much better indeed!

Comment thread R/netzschleuder.R Resolved
Co-authored-by: Kirill Müller <krlmlr@users.noreply.github.com>
@schochastics
schochastics marked this pull request as ready for review June 2, 2025 06:05
@schochastics
schochastics merged commit 93d5371 into main Jun 2, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Netzschleuder code

3 participants