Does using design patterns makes java code slow? If I use extra interfaces and syntax constructions (like class wrap) will I get well organized but slow code or that won't make my code significantly slower?
This will not make your code significantly slower. As some function calls are wrapped in additional classes or methodes, some method-calls are a little bit slower, but a human will not notice this. It's about nano-seconds. Allways prefere the advantage of good readable and reusable code.
I a high performance application, you should consider to refactor your code to a higher performance after designing and implementing it based on patterns. But normaly this is not needed.
And as always: It depends on the used pattern and the usecase of your program.
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