superduper
superduper copied to clipboard
[REMOTE-UTIL] Utility for remote / cached loading of model/ component instances
trafficstars
When users are interacting with the system, they should not need to care too much about where the model is running.
superduper will provide the best place to run the model.
class ModelProxy(Model):
...
class Datalayer:
def load(type_id, identifier) -> ModelProxy | Component:
context = get_context()
if context is not None:
remote = context.get_remote()
if remote:
return remote.load(type_id, identifier)
...
- [ ] #2444
- [ ] #2445