Skip to content

Improve performance of show command using an EAR cache #831

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

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

aplowman
Copy link
Contributor

This PR introduces a simple cache of ElementActionRun objects associated with a given Submission. The cache is switched on within App._get_known_submissions, and kept on for the Submission objects passed on to App._show. This should significantly speed up show calls for large workflows, especially those with a large number of jobscripts.

@aplowman aplowman changed the title Perf/show Improve performance of show command using an EAR cache May 16, 2025
@aplowman aplowman added show-command Related to the show command, which displays recent submission info persistence Related to persistent workflow data storage/manipulation optimisation Improving speed or memory usage labels May 16, 2025
aplowman added 2 commits May 16, 2025 18:03
fix: do not reload `Submission` EAR cache if already set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimisation Improving speed or memory usage persistence Related to persistent workflow data storage/manipulation show-command Related to the show command, which displays recent submission info
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant