Recently I had switched a complex Flex project that previously used all libraries as statically compiled SWCs to dynamically loaded
Runtime Shared Libraries (RSL). In the picture on the right you can see the module structure of the whole build, which was done using Maven and the
flex-mojos plugin.
You can see that there is one high level library (library A) that is shared across all applications and a more specialized library (library B) that is providing components and classes to a certain subset of other applications.
Library A contains a couple of embedded images containing various icons and a lot of components, while Library B contained just a few components. So after compilation the obvious expected result would be to have an RSL file of library A that is much bigger than the RSL file of library B in case library B uses library A as RSL and not as statically linked SWC.
Well the dynamic linkage worked well for all the applications, which where just a couple of KBs in size after the change in contrast to more than 1 MB before the change. However this was not the case for the libraries. Library A had a size of 1.2 MB but library B had a size of 1.25 MB???
Continue reading "Size of Flex RSLs with dependencies to other RSLs" »