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

前端 未结 5 2039
太阳男子
太阳男子 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:31

    MeasureIt to be certain, but you'll find unless you're creating a globe-spanning ultra-high-volume transaction processing supercomputing cluster, it's not going have an appreciable difference.

提交回复
热议问题