Hello out there,
these days I read a lot with regards to RSLs. One disadvantage is that RSLs must be loaded into memory but can save significant loading time.
Now what happens in the following scenario:
I have a superFramework.swf and a subapp.swf. subapp.swf is displayed and loaded on demand within superframework.swf using the SWFLoader. However both SWFs have dependencies to the common.swc, which will be compiled as RSL.
So the dependcies look like this:
superframework.swf ---RSL---> common.swc
---SWFLoader-->subapp.swf ---RSL---> common.swc
Now my questions:
- Is the subapp.swf loaded in a separate memory space?
- If yes: Does this mean that the common.swc RSL is loaded twice into memory?
- If no: What about singletons like a ModelLocator in the common.swc. Is the same instance available to subapp.swf and superframework.swf at the same time?