1
0
Fork
You've already forked pippy
0

Minimise memory usage #2

Open
opened 2026年07月13日 17:35:35 +02:00 by TimTaylor · 0 comments

Currently all output is kept in memory with the caveat that when return = FALSE scenarios aren't returned so R's garbage collection should clear up after each scenario runs in it's usual way.

There are two options that could help:

  • The first would be to implement our own cleanup whilst a scenario is running. Because we generate a DAG of the pipeline we know when objects are no longer needed. When return = FALSE we could remove these as appropriate during the running of a scenario.
  • Secondly we could always serialise and deserialise to disc for each stage of a scenario. This would be a lot less efficient but is the most extreme cleanup we could do.

Currently, I feel inclined to implement the first.

Currently all output is kept in memory with the caveat that when `return = FALSE` scenarios aren't returned so R's garbage collection should clear up after each scenario runs in it's usual way. There are two options that could help: - The first would be to implement our own cleanup whilst a scenario is running. Because we generate a DAG of the pipeline we know when objects are no longer needed. When `return = FALSE` we could remove these as appropriate during the running of a scenario. - Secondly we could always serialise and deserialise to disc for each stage of a scenario. This would be a lot less efficient but is the most extreme cleanup we could do. Currently, I feel inclined to implement the first.
Sign in to join this conversation.
No Branch/Tag specified
main
pages
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
TimTaylor/pippy#2
Reference in a new issue
TimTaylor/pippy
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?