天天看點

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-猜想,對于其他語言同樣,函數式代碼的執行效率要高,為什麼?