tips
[Top] [All Lists]

REALbasic Tip: Reducing the size of your application

To: "REALbasic Tips" <realbasic-tips at lists dot realsoftware dot com>
Subject: REALbasic Tip: Reducing the size of your application
From: Geoff Perlman <geoff at realsoftware dot com>
Date: Fri, 27 Jun 2003 15:30:01 -0500
This tip applies to REALbasic 5 only but includes some information that will
be of interest even if you are using an older version of REALbasic.

Any easy way to reduce the size of your built apps is to use control arrays
where ever possible. For example, if you have 20 statictext controls on a
window, making them all a single control array will make your app smaller
because there is overhead associated with each control. In a control array,
there's really only one control.

As a test, I created an application with a single window with 48 statictext
controls. I then created the same application using a control array. The
application with the control array was about 200K smaller. Your mileage may
vary of course based on how many controls your projects have that could be
turned into control arrays.

We are working on technology that will make your applications smaller in the
future by only including the parts of the REALbasic platform layer you are
actually using in your project. This will have an even more dramatic impact
on application size. However, even then, using control arrays will still
help to reduce application size even further.

This tip was suggested by Luke Jackson.
-- 
Geoff Perlman
President and CEO
REAL Software, Inc.
512-328-7325 x711 (voice)
512-328-7372 (fax)


 - - - - - - - - - -
Got a useful tip to share? Send it to us at:
<REALbasic-tips at lists dot realsoftware dot com>.

To unsubscribe from the Tips list, send an email to 
<mailto:realbasic-tips-off at lists dot realsoftware dot com>

<Prev in Thread] Current Thread [Next in Thread>
  • REALbasic Tip: Reducing the size of your application, Geoff Perlman <=