Is object-oriented PHP slow?

前端 未结 11 1908
温柔的废话
温柔的废话 2020-12-15 06:24

I used to use procedural-style PHP. Later, I used to create some classes. Later, I learned Zend Framework and started to program in OOP style. Now my programs are based on m

11条回答
  •  抹茶落季
    2020-12-15 06:35

    If you're using include_once() then you are causing an unnecessary slowdown, regardless of OOP design or not.

    OOP will add an overhead to your code but I will bet that you will never notice it.

提交回复
热议问题