Size optimization

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
DavidD
Posts: 17
Joined: Wed Mar 07, 2007 9:19 pm
Location: United States

Size optimization

Post by DavidD »

The project (Delphi 7) I am working on has mushroomed from about 7 mByte to 13 mByte after initial passes through the units placing siLangLinked components. We have 4 languages defined (English, French, German and Spanish). I realize that when all translations are ready to go, we will create the SIL/SIB file and remove all translations. A smaller project that I did for a test case, however, still remained about 50% larger than before translation.

What strategies do you suggest for minimizing EXE bloat?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

The size grow from 7 to 13 MB is very strange. Placing TsiLang on forms usually adds about 500 K to EXE. So I guess the origin of such growth might be somewhere else.
To create smaller EXE you can just export translations to SIB file and clear them in EXE right before the build. Additionally, I would recommend to check the translations list and be sure to remove items which don't need translations, since this will reduce size as well. Also using property AutoSkipEmpties = True will remove empty items significally reducing the size of translations.
Best regards,
Igor Siticov.
DavidD
Posts: 17
Joined: Wed Mar 07, 2007 9:19 pm
Location: United States

Post by DavidD »

I just discovered that I had project Options set to compile without any run time packages. I added the D7r.bpl to the list and now the exe is down to less than 8 mbyte. :D
Post Reply