SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Size optimization

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
DavidD



Joined: 07 Mar 2007
Posts: 17
Location: United States

PostPosted: Fri Mar 09, 2007 9:53 pm    Post subject: Size optimization Reply with quote

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?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Mon Mar 12, 2007 5:38 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
DavidD



Joined: 07 Mar 2007
Posts: 17
Location: United States

PostPosted: Tue Mar 13, 2007 8:10 pm    Post subject: Reply with quote

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. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group