Always the first thing i hear when we talk about design pattern is like a documented solution to common architectural issues.
I am curious to know which design patterns are good solutions to improve performance of an application in general.
Flyweight reduces memory consumption.
The Proxy pattern can be used for speed optimization.
The Bridge pattern can change the implementation of an abstraction on the fly - always picking the most efficient one.
On a more serious note, design patterns will probably reduce performance. From my experience, the usage of design patterns gives cleaner, more maintainable code. Should you need to optimize anything, you would probably need to de-design pattern the code.
Often performance of code is dependent on a relatively small piece (a data structure, a function, or even a single loop), so it doesn't go into the scope of design patterns any way. Changing a straight forward function in C to a super optimized version in assembly probably won't change the way the entire class behaves.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With