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

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 {$).

主站蜘蛛池模板: 石河子市| 定兴县| 郸城县| 长汀县| 左贡县| 宁安市| 浠水县| 正宁县| 巴林左旗| 雅安市| 长顺县| 商洛市| 二手房| 包头市| 镇赉县| 蒙城县| 南陵县| 兴和县| 喀什市| 托克逊县| 天水市| 察雅县| 中江县| 三门县| 永康市| 乳源| 五华县| 神池县| 水富县| 青州市| 邯郸市| 邵阳市| 陕西省| 蓬莱市| 尼木县| 尚志市| 界首市| 周至县| 罗城| 怀仁县| 南康市|