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

  • Delphi High Performance
  • Primo? Gabrijelcic
  • 137字
  • 2021-06-24 19:23:03

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

主站蜘蛛池模板: 塔河县| 新兴县| 冕宁县| 拉孜县| 增城市| 巴彦县| 碌曲县| 万载县| 天柱县| 枝江市| 龙州县| 湟源县| 敖汉旗| 泽州县| 凤山市| 汶上县| 什邡市| 同心县| 桐庐县| 保康县| 泸溪县| 洛川县| 忻州市| 蓝山县| 闻喜县| 昌邑市| 安康市| 玉门市| 固始县| 泸西县| 崇信县| 遵义市| 崇左市| 柘荣县| 台东市| 盐山县| 衡水市| 错那县| 赣州市| 泰州市| 焦作市|