Rich Newman posted awesome guides for Composite Application Block (CAB) programming:
It is important to understand these core principles. Recently I was involved with a project where CAB was used extensively. Too extensively… The application was actually over-CAB’ed causing performance hit. When we ran the profiler we saw that many functions calls were empty while adding up to execution time. The only solution was redesigning the application and CAB usage.
- Do not over CAB
- Load modules on demand
- Cache static data
- Notes on (extreme) Performance requirements for CAB
- Mobile Client Software Factory (includes includes CABgen and OBgen for NGEN’ing CAB modules)
- How To: load CAB modules on demand