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

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

主站蜘蛛池模板: 右玉县| 宁南县| 潮州市| 阿拉尔市| 邓州市| 淳安县| 彰化县| 南澳县| 寿阳县| 夏邑县| 昌吉市| 海阳市| 房产| 丹东市| 南漳县| 阳西县| 泊头市| 荆门市| 驻马店市| 牟定县| 九龙城区| 阿拉善左旗| 会东县| 雷山县| 阜新市| 桃园县| 洛浦县| 伊吾县| 阳信县| 天长市| 虹口区| 上犹县| 湘乡市| 临夏县| 巴楚县| 宁远县| 宿迁市| 通渭县| 灌云县| 北川| 禹城市|