add snapshot feature for collecting process info at a point in time #517
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I am proposing a new structure called Snapshot that inherits from Process, but loads all information at the time the snapshot is created.
The goals of this addition are to:
I see a ~30% reduction ( 2.8 ms compared to 3.9 ms) in the average time to load all information for a single process.
There is also a filtering system so static snapshots can be taken with only a subset of process information.
This proposed solution was written to avoid making large changes to the existing Process design. I appreciate any suggestions you may have for achieving the goals I listed above.
If this is of no interest to this project, then I ask that you consider exposing the underlying fill functions. This would allow the snapshot feature to be developed in a separate downstream project.
Thanks!