Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

about the app size

edited August 2001 in General
Hi,

I find my app size grow 2M more after I include the report builder unit in
there. I use the follow units:
ppModule, ppBands, ppCache, ppClass, ppRelatv, ppProd, ppReport, ppComm,
ppEndUsr, ppCTDsgn, daDBBDE, ppDB, ppDBPipe,
raCodMod, daIDE, raIDE, daDatMan;
In the Project Options -> Linker, I just use the default option, no Include
TD32 debug info and complie everything into one executable file. Before I
include RB, my app size is 5.3M, but now it's 7.39M! Have any good way to
reduce my app size?

Thanks!

Tao

Comments

  • edited August 2001
    -------------------------------------------
    Article: Minimize Size of Application .EXE
    -------------------------------------------

    How can I minimize the size of my application
    executable (.exe) when using ReportBuilder?


    1. Part of the overhead is linking in the BDE library.
    Probably about 300K or so.

    2. Part of the overhead is linking the RB library.
    Probably about 600K or so for the core reporting library.

    If you include the Designer, Query Tools, etc. then
    there will be additional overhead.

    3. Any additional overhead will be added by the reports you create. Each
    report will contain description of all the objects on the report. View
    the .dfm file as text for an example.


    Strategies to minimize the size of the .Exe:

    1. Compile your project using the Delphi run-time packages option. This
    will create a small .exe. You then distribute the
    runtime packages along with your executable file.

    2. Store you report definitions to .rtm files or a database. Thus the
    report definitions are stored outside the .exe and only loaded as
    needed. If you have a large number of reports, this can drastically
    reduce the size of the .exe.

    3. Compile all of your reports into a Delphi package.
    Then your application only loads the package as needed.

    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.