Do C# static functions perform better than nonstatic functions, beyond reduced memory usage?

前端 未结 5 2030
太阳男子
太阳男子 2021-01-31 07:57

I assume that public or private static targets must have reduced memory usage, due to the fact that there is only one copy of the static t

5条回答
  •  生来不讨喜
    2021-01-31 08:32

    Good answers - basically it doesn't matter, which is the answer to nearly every question of this sort. Even if it did make a difference - If execution time of your program cost a dollar, this sort of issue is likely to cost a fraction of a cent, and it is very likely that there are other things costing a great deal more.

提交回复
热议问题