天天看点

use of objects can be less efficient than a procedural approach

PHP Advanced and Object-Oriented Programming 3rd Edition

As for the technical negatives of OOP, use of objects can be less efficient than a procedural approach.The performance difference between using an object or not may be imperceptible in some cases, but you should be aware of this potential side effect.

发问:

0-猜想,对于其他语言同样,函数式代码的执行效率要高,为什么?