I have an app that has a parent and two distinct child apps (lets call them ChildA and ChildB) of which there are likely to be multiple instances of each.
For code efficiency I've placed all common functions in the parent and then call them from the child. For big functions that have few calls that makes sense and probably has little effect on speed. But for small functions that have many calls, I'm wondering if there is a performance penalty in doing it this way.
The other option is a library which I understand basically merges the library with the app code so that called functions appear to be 'local' to the app.
Does anyone have some words of wisdom on this?