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

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

主站蜘蛛池模板: 海宁市| 师宗县| 怀安县| 华亭县| 蒙阴县| 平度市| 德昌县| 永胜县| 永胜县| 吉首市| 旌德县| 杭锦后旗| 翼城县| 北川| 军事| 商南县| 宁陵县| 新兴县| 志丹县| 眉山市| 紫金县| 拜泉县| 定兴县| 唐河县| 弥勒县| 峡江县| 珲春市| 梁山县| 长沙县| 鞍山市| 泸溪县| 治多县| 大兴区| 濮阳市| 江孜县| 奎屯市| 同心县| 夏河县| 昌吉市| 台东市| 玛多县|