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

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

主站蜘蛛池模板: 平乐县| 卓资县| 新泰市| 崇文区| 奉化市| 汪清县| 都兰县| 沿河| 巴塘县| 广宁县| 普兰店市| 东乌珠穆沁旗| 无棣县| 桐梓县| 西吉县| 嘉禾县| 玉门市| 连山| 赣榆县| 锡林郭勒盟| 乐亭县| 蛟河市| 甘孜| 建始县| 青浦区| 邢台市| 霍山县| 象州县| 三江| 永川市| 南投县| 周口市| 雅安市| 沾益县| 叙永县| 海城市| 微博| 江川县| 东宁县| 苏尼特右旗| 北川|