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-猜想,对于其他语言同样,函数式代码的执行效率要高,为什么?
posted @ 2016-08-14 00:01  papering  阅读(175)  评论(0编辑  收藏  举报