4 ms·
But what does that have to do with dylibs? If you have RAM usage restrictions, aren't they for the whole process, so the main binary and all its dylibs?
by remram 3y ago
But what does that have to do with dylibs?
If you have RAM usage restrictions, aren't they for the whole process, so the main binary and all its dylibs?
- liuliu 3y agoYeah, I am not explaining myself very well. I meant: people try to sharing code between main app and extensions with dylib. If they don't do that, they have code-duplication in the app bundle so the binary size is main code + 2 * shared code + extension code. However, it becomes more complicated because if you just naively sharing the code, your sharing part will be bloated, therefore, making the RAM usage higher than a static linked one (because static linked sharing code can do dead-code elimination better).