Adding files to the DPR file vs project paths in Delphi 2010

后端 未结 5 803
忘了有多久
忘了有多久 2020-12-06 12:36

We are just migrating from D7 to D2010 and are having a debate about cleaning up the project paths. We have a number of directories with a large number of Pas files that are

5条回答
  •  [愿得一人]
    2020-12-06 12:48

    Reasons to not include all files in the project:

    • less time to open/close a project (forms and datamodules need extra time)
    • faster file refactorings (renaming/moving of files and directories does not require to edit all projects)
    • easier to find the units which are the core requirements and the entry point location for the application logic (uses MyInterfaces, MyTypes, MymMainUnit;)

    And this QC entry:

    Report No: 77687 (RAID: 273031)
    Status: Open Editing in the .dpr source gets slower with more units in the project http://qc.embarcadero.com/wc/qcmain.aspx?d=77687

    Update: Now I know that there are many ways to open the project file :) - But my point is that in a dpr with 500 unit references, it is hard to find the 'important' (or 'main') units, which are the starting point to drill down into the source - and it is easier to investigate code if it is a 'lightweight' project file which contains only the necessary unit references.

提交回复
热议问题