官术网_书友最值得收藏!

Delphi compiler settings

First things first—before you start meddling with the code, you should check the Delphi compiler settings for your project. In some situations, they can affect the code speed quite a lot.

To check and possibly change compiler settings, open your project, then select Project | Options from the menu or press Ctrl + Shift + F11. Relevant options can be found in the branch Delphi Compiler | Compiling, as shown in the following screenshot here:

Compiler settings that influence program speed

We will look into the following options:

  • Code inlining control
  • Optimization
  • Record field alignment
  • Assertions
  • Overflow checking
  • Range checking

All of these settings can be enabled/disabled for the complete project and they can also be turned on/off in the code by using compiler directives (comments that start with {$).

主站蜘蛛池模板: 榆中县| 兴化市| 贵溪市| 大兴区| 嵩明县| 远安县| 建昌县| 盈江县| 蒙阴县| 洪泽县| 毕节市| 许昌市| 阿克苏市| 增城市| 石嘴山市| 攀枝花市| 淮滨县| 政和县| 峨眉山市| 汉沽区| 惠安县| 改则县| 洱源县| 谢通门县| 资兴市| 达拉特旗| 洛阳市| 岳池县| 东宁县| 樟树市| 九寨沟县| 黑水县| 阳城县| 宁安市| 崇阳县| 高阳县| 鄂伦春自治旗| 兴义市| 德州市| 达拉特旗| 香河县|