Reusable software based on design patterns typically utilizes “expensive” language features like object composition and polymorphism. This limits their applicability to areas where efficiency in the sense of code size and runtime is of minor interest. To overcome this problem our paper presents a generative approach to “streamline” pattern-based object-oriented software. Depending on the actual requirements of the environment the source code is optimized with a transformation tool. The presented technique provides “scalable” software structures and thus reconciles reusability with efficiency of pattern-based software.