How to reduce the size of the stack?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

How to reduce the size of the stack?

Post by pkmittal » Mon Apr 16, 2007 9:57 am

Hello,

Is there any way to reduce the size of the rev stack file ?

I have observed that making small changes in the rev file increase the size of the stack tremendously ?

Please let me know if you have any insights.

Thanks
Best regards
Pradeep

pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

How to reduce the size of the exe file?

Post by pkmittal » Mon Apr 16, 2007 10:39 am

Any insights on reducing the size of the standalone (exe file) ? I have a stack size of 979 KB but after creating the exe it becomes 2.80 MB.

Pradeep

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Post by Janschenkel » Mon Apr 16, 2007 11:57 am

Hi Pradeep,

The Revolution IDE will add a number of custom properties to your controls as you edit scripts and make other modifications. These IDE-specific data chunks help the IDE remember what text was selected when you last saved the script, etc.
Chipp Walters of Altuit has created a plugin to help you remove these custom properties from your stacks. You can find it along with the other excellent Altuit plugins at http://www.altuit.com/webs/altuit2/altP ... /about.htm

As for the standalone size: when a standalone application is created, your stack is actually wrapped around the Revolution engine. While this is different from a traditional compiler, the .NET and JAVA frameworks download sizes make the 1.9 megabyte increase in size look ridiculously small.

Best regards,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

marielle
Livecode Opensource Backer
Livecode Opensource Backer

Re: How to reduce the size of the exe file?

Post by marielle » Mon Apr 16, 2007 1:46 pm

Another thing you can consider to use is "compact stack" before saving it

From the doc: "When you cut or delete a card, some free space is left within the stack. This empty space is reclaimed when you choose File menu Save. Use the compact command to reclaim this empty space without having to save the stack."

Not clear what it exactly does and whether it will help with your problem.

Post Reply

Return to “Talking LiveCode”