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

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

主站蜘蛛池模板: 莒南县| 娱乐| 丽江市| 九龙坡区| 浮山县| 崇明县| 榆树市| 辽阳市| 开江县| 内黄县| 密山市| 北川| 栖霞市| 正蓝旗| 秦安县| 泌阳县| 涞水县| 大丰市| 达日县| 彝良县| 安平县| 桃江县| 威宁| 农安县| 永丰县| 双流县| 庆阳市| 贵阳市| 长春市| 黑龙江省| 龙川县| 赤水市| 凭祥市| 武邑县| 大洼县| 汾阳市| 抚顺市| 铁岭市| 额尔古纳市| 浦北县| 施秉县|