You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
Addon instantiation time can add up in large applications. Perhaps we can share certain addons per request and even across requests. Addons would have a property that it can use to indicate whether it can be shared per requests or for all requests. By doing this certain addons such as the cookies addon can indicate that it can be shared per request and would only be instantiated once per request. Global addons that do not depend on requests would only be instantiated once per application.
This would not only cut down on addon instantiation time but would also limit the amount of memory used and garbage collection.
The text was updated successfully, but these errors were encountered:
The global structures that you're reference here ARE NOT action context, they need to be something else. ActionContext addons are tied to an action executed on a mojit instance by definition, which means they will never be global. But I could not agree more that today people are using addons to mitigate a bigger problem, the lack of page-level structures that can be used by any mojit instance in the context of that page (independently or the runtime). We do have some ideas, and we will formalize them in the next few days, I will keep you posted.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Addon instantiation time can add up in large applications. Perhaps we can share certain addons per request and even across requests. Addons would have a property that it can use to indicate whether it can be shared per requests or for all requests. By doing this certain addons such as the cookies addon can indicate that it can be shared per request and would only be instantiated once per request. Global addons that do not depend on requests would only be instantiated once per application.
This would not only cut down on addon instantiation time but would also limit the amount of memory used and garbage collection.
The text was updated successfully, but these errors were encountered: