<bdo id='5p7dZ'></bdo><ul id='5p7dZ'></ul>

      <small id='5p7dZ'></small><noframes id='5p7dZ'>

    1. <i id='5p7dZ'><tr id='5p7dZ'><dt id='5p7dZ'><q id='5p7dZ'><span id='5p7dZ'><b id='5p7dZ'><form id='5p7dZ'><ins id='5p7dZ'></ins><ul id='5p7dZ'></ul><sub id='5p7dZ'></sub></form><legend id='5p7dZ'></legend><bdo id='5p7dZ'><pre id='5p7dZ'><center id='5p7dZ'></center></pre></bdo></b><th id='5p7dZ'></th></span></q></dt></tr></i><div id='5p7dZ'><tfoot id='5p7dZ'></tfoot><dl id='5p7dZ'><fieldset id='5p7dZ'></fieldset></dl></div>

      <legend id='5p7dZ'><style id='5p7dZ'><dir id='5p7dZ'><q id='5p7dZ'></q></dir></style></legend>

      <tfoot id='5p7dZ'></tfoot>

      C# 编译器或 JIT 在什么级别优化应用程序代码?

      At what level C# compiler or JIT optimize the application code?(C# 编译器或 JIT 在什么级别优化应用程序代码?)

      <tfoot id='YiP1a'></tfoot>

          <i id='YiP1a'><tr id='YiP1a'><dt id='YiP1a'><q id='YiP1a'><span id='YiP1a'><b id='YiP1a'><form id='YiP1a'><ins id='YiP1a'></ins><ul id='YiP1a'></ul><sub id='YiP1a'></sub></form><legend id='YiP1a'></legend><bdo id='YiP1a'><pre id='YiP1a'><center id='YiP1a'></center></pre></bdo></b><th id='YiP1a'></th></span></q></dt></tr></i><div id='YiP1a'><tfoot id='YiP1a'></tfoot><dl id='YiP1a'><fieldset id='YiP1a'></fieldset></dl></div>

          <legend id='YiP1a'><style id='YiP1a'><dir id='YiP1a'><q id='YiP1a'></q></dir></style></legend>

              <tbody id='YiP1a'></tbody>

            <small id='YiP1a'></small><noframes id='YiP1a'>

              <bdo id='YiP1a'></bdo><ul id='YiP1a'></ul>

              1. 本文介绍了C# 编译器或 JIT 在什么级别优化应用程序代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想知道这些信息以减少我的代码大小,这样我就不会浪费我的时间来优化将由编译器或 JIT 完成的事情.

                I want to know this info to reduce my code size so I will not waste my time optimize things that will be done by compiler or JIT.

                例如:

                如果我们假设编译器将调用内联到属性的 get 函数,那么我不必将返回值保存在局部变量中以避免函数调用.

                if we assume the compiler inline the call to the get function of a property so I do not have to save the return value in a local variable to avoid function call.

                我想推荐一个很好的参考来描述正在发生的事情?

                I want to recommend a good reference that describes what is going on?

                推荐答案

                你可能想看看这些文章:

                You may want to take a look at these articles:

                JIT 优化 - (Sasha Goldshtein - CodeProject)
                Jit 优化:内联 I (David Notario)
                Jit 优化:内联 II (David Notario)

                老实说,您不应该过多担心这种级别的微观细节.让编译器/JIT'er 为您担心这个问题,在几乎所有情况下它都比您做得更好.不要沉迷于过早优化.专注于让您的代码正常工作,然后在 (a) 运行速度不够快、(b) 您遇到大小"问题时担心以后的优化.

                To be honest you shouldn't be worrying too much about this level of micro-detail. Let the compiler/JIT'er worry about this for you, it's better at it than you are in almost all cases. Don't get hung up on Premature Optimisation. Focus on getting your code working, then worry about optimisations later on if (a) it doesn't run fast enough, (b) you have 'size' issues.

                这篇关于C# 编译器或 JIT 在什么级别优化应用程序代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                Cannot remove items from ListBox(无法从列表框中删除项目)
                Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                  <tbody id='BHlvV'></tbody>

                <tfoot id='BHlvV'></tfoot>
                <legend id='BHlvV'><style id='BHlvV'><dir id='BHlvV'><q id='BHlvV'></q></dir></style></legend>

                    <bdo id='BHlvV'></bdo><ul id='BHlvV'></ul>

                      <small id='BHlvV'></small><noframes id='BHlvV'>

                      • <i id='BHlvV'><tr id='BHlvV'><dt id='BHlvV'><q id='BHlvV'><span id='BHlvV'><b id='BHlvV'><form id='BHlvV'><ins id='BHlvV'></ins><ul id='BHlvV'></ul><sub id='BHlvV'></sub></form><legend id='BHlvV'></legend><bdo id='BHlvV'><pre id='BHlvV'><center id='BHlvV'></center></pre></bdo></b><th id='BHlvV'></th></span></q></dt></tr></i><div id='BHlvV'><tfoot id='BHlvV'></tfoot><dl id='BHlvV'><fieldset id='BHlvV'></fieldset></dl></div>