Warm-up when calling methods in C#

前端 未结 4 724
情歌与酒
情歌与酒 2020-11-30 11:44

I just came across this post that talks about time measuring. I remember (I hope I\'m not misremembering) it\'s an unfair competition, if this method is never called before.

4条回答
  •  天涯浪人
    2020-11-30 12:01

    This is due to just-in-time (JIT) compilation. If you want to improve performance and avoid this effect, the Native Image Generator (Ngen.exe) can help you.

提交回复
热议问题