Setting up a C# application for max performance build

前端 未结 4 1438
傲寒
傲寒 2021-01-31 17:24

So we are pretty happy with our program. It\'s fast and stable in Debug mode and so far that\'s the version live with customers. We now desire that free boost we get from a rele

4条回答
  •  囚心锁ツ
    2021-01-31 18:10

    An approach I've seen used in several programs (Paint.NET and Adobe Acrobat Reader come to mind) is that they use ngen on their managed assemblies upon installing. This provides little runtime boost, but startup times are decreased, as JIT does not have to be used anymore.

    This can be used alongside other optimizations that you do.

    (Note that you cannot run ngen as a part of your build process, because it takes into account the specifics of the hardware it is currently being run on)

提交回复
热议问题