Do we want to keep an instance alive if we call it twice? #39
Replies: 3 comments 3 replies
-
|
Do you mean if one SC is calling the same instance multiple times, we should not recreate it each time, or more of keeping a cache of frequently used instances no matter what SC calls it ? |
Beta Was this translation helpful? Give feedback.
-
|
Does an instance carry a state that can be read&written by the SC ? |
Beta Was this translation helpful? Give feedback.
-
|
I think it's just a good sandboxing rule of thumbs to not reuse instances at this time. It's not a concern about determinism but more because it will be an more complex mental execution model to deal with this behaviour, for only few case where it is a performance game changer. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Actually the strategy is too create an instance on call_module. But we could define a cache of instances in order to interact more activelly with internal objects.
@AureliaDolo @damip @gterzian @yvan-sraka
Beta Was this translation helpful? Give feedback.
All reactions