Performance of using static methods vs instantiating the class containing the methods

后端 未结 8 1706
别跟我提以往
别跟我提以往 2020-11-30 07:31

I\'m working on a project in C#. The previous programmer didn\'t know object oriented programming, so most of the code is in huge files (we\'re talking around 4-5000 lines)

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 08:17

    It's not valid in PHP,
    Object Method is faster :
    http://www.vanylla.it/tests/static-method-vs-object.php

提交回复
热议问题