pcdshub / lightpath

LCLS Lightpath Module
https://pcdshub.github.io/lightpath
Other
4 stars 9 forks source link

ENH: Make device loading more lazy #143

Closed tangkong closed 1 year ago

tangkong commented 1 year ago

Expected Behavior

It'd be nice if we don't have to load all devices in the facility when initializing lightpath. There should be a way to only create the devices we care about, even if we're building the whole facility graph to find paths.

I had this in mind when creating the lightpath interface, but didn't fully leverage it.

Current Behavior

Currently on the creation of the facility graph, we load all the devices. This makes it simpler to put these devices into their beampaths, but also incurs a lot of startup cost.

Possible Solution

Context

General startup costs must be squashed at all costs

Your Environment

pcds-5.4.1, with the updated lightpath-device-config

tangkong commented 1 year ago

closed by #145