Skip to content
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

Prune workflow in RollingDetectorView #171

Merged
merged 3 commits into from
Jan 28, 2025
Merged

Conversation

SimonHeybrock
Copy link
Member

@SimonHeybrock SimonHeybrock commented Jan 24, 2025

Working with sciline.Pipeline turns out to be surprisingly slow. Just creating GenericNeXusWorkflow takes close to 200 ms. Pruning the run and monitor types here saves 100 ms in the follow-up code. Since this is called for every detector, it can can add up to about 1 seconds or so in savings for some instruments. This affects startup time of beamlime services.

SimonHeybrock and others added 2 commits January 24, 2025 14:27
Working with sciline.Pipeline turns out to be surprisingly slow. Just
creating GenericNeXusWorkflow takes close to 200 ms. Pruning the run and
monitor types here saves 100 ms in the follow-up code. Since this is
called for every detector, it can can add up to about 1 seconds or so in
savings. This affects startup time of beamlime services.
Copy link
Member

@jl-wynen jl-wynen left a comment

Choose a reason for hiding this comment

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

👍 for the change. But can't you ext6ract the workflow construction from this function and cache the workflow?

@SimonHeybrock
Copy link
Member Author

👍 for the change. But can't you ext6ract the workflow construction from this function and cache the workflow?

We could, but since it is not a huge problem (done only at startup) I'd rather avoid the complication and instead look into fixing the underlying problem in/via Sciline (see discussion on Slack).

@SimonHeybrock SimonHeybrock merged commit d419d36 into main Jan 28, 2025
4 checks passed
@SimonHeybrock SimonHeybrock deleted the use-smaller-workflow branch January 28, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants