TnFOX Size?

View: New views
8 Messages — Rating Filter:   Alert me  

TnFOX Size?

by Leto Atreides :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a question about the size of TnFOX vs the size of 'regular' FOX.  I have a regular fox lib thats 3.75 MB compiled (unstripped, release) with all the goodies I wanted.  A regular compile of TnFOX is 7.11 MB (unstripped, release).

Is there a way to cut TnFOX's size down considerably? Some scon flag to disable things? 

(This is how I compile FOX)
./configure --prefix=/usr --enable-jpeg --enable-png --enable-tiff --enable-bz2lib  --disable-cups --without-xshm --without-xrandr --enable-release --enable-shared=yes --enable-static=no --with-opengl --without-xcur

(This is how I compile TnFOX)
scons tnfox

Any help would be appreciated

(BTW, I dont know if my subscription to the tnfox mailing list has been activated yet, so I might not get the reply if its to the list)

--
Talent is not something you learn, its something you refine.

If you make something that any idiot can use, only idiots will use it.

Re: TnFOX Size?

by Niall Douglas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 25 Feb 2006 at 21:06, The Devils Jester wrote:

> I have a question about the size of TnFOX vs the size of 'regular' FOX.  I
> have a regular fox lib thats 3.75 MB compiled (unstripped, release) with all
> the goodies I wanted.  A regular compile of TnFOX is 7.11 MB (unstripped,
> release).
>
> Is there a way to cut TnFOX's size down considerably? Some scon flag to
> disable things?

Simplest method is to move to GCC 3.4. You should get around a 4.5-
5Mb file rather than 7Mb. Earlier GCC's produced too much code.

> (This is how I compile FOX)
> ./configure --prefix=/usr --enable-jpeg --enable-png --enable-tiff
> --enable-bz2lib  --disable-cups --without-xshm --without-xrandr
> --enable-release --enable-shared=yes --enable-static=no --with-opengl
> --without-xcur
>
> (This is how I compile TnFOX)
> scons tnfox

Admittedly, I leave all that stuff turned on and there currently
isn't any formal way of removing it. Hack config/g++.py and remove
the stuff you don't want by simply commenting it out. I personally
prefer this system as it means you can simply type "scons" and you
don't need to remember complex command line pars.

Cheers,
Niall





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tnfox-discussion mailing list
Tnfox-discussion@...
https://lists.sourceforge.net/lists/listinfo/tnfox-discussion

Re: TnFOX Size?

by Leto Atreides :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I only care about turning off the features that I dont use that would have large impact on the lib size.  7.5ish MB compared to 3.5ish MB is a huge difference.  Know of any specific features that add alot of space?

On 2/26/06, Niall Douglas <s_sourceforge@...> wrote:
On 25 Feb 2006 at 21:06, The Devils Jester wrote:

> I have a question about the size of TnFOX vs the size of 'regular' FOX.  I
> have a regular fox lib thats 3.75 MB compiled (unstripped, release) with all
> the goodies I wanted.  A regular compile of TnFOX is 7.11 MB (unstripped,
> release).
>
> Is there a way to cut TnFOX's size down considerably? Some scon flag to
> disable things?

Simplest method is to move to GCC 3.4. You should get around a 4.5-
5Mb file rather than 7Mb. Earlier GCC's produced too much code.

> (This is how I compile FOX)
> ./configure --prefix=/usr --enable-jpeg --enable-png --enable-tiff
> --enable-bz2lib  --disable-cups --without-xshm --without-xrandr
> --enable-release --enable-shared=yes --enable-static=no --with-opengl
> --without-xcur
>
> (This is how I compile TnFOX)
> scons tnfox

Admittedly, I leave all that stuff turned on and there currently
isn't any formal way of removing it. Hack config/g++.py and remove
the stuff you don't want by simply commenting it out. I personally
prefer this system as it means you can simply type "scons" and you
don't need to remember complex command line pars.

Cheers,
Niall





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tnfox-discussion mailing list
Tnfox-discussion@...
https://lists.sourceforge.net/lists/listinfo/tnfox-discussion



--
Talent is not something you learn, its something you refine.

If you make something that any idiot can use, only idiots will use it.

<a href=" http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=1">Get Firefox!</a>

Re: TnFOX Size?

by Niall Douglas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 26 Feb 2006 at 9:43, The Devils Jester wrote:

> I only care about turning off the features that I dont use that would have
> large impact on the lib size.  7.5ish MB compared to 3.5ish MB is a huge
> difference.  Know of any specific features that add alot of space?

Yes, GCC 3.3's template parser is not very good and generates a lot
of unnecessary code. This adds around 2Mb of unnecessary code. As
TnFOX uses a lot of templates, it's not like it can be compiled out.

Best thing is to move to a better compiler. They totally replaced the
template parser in 3.4 and the output shrinks massively, as well as
running a lot faster.

If that's simply not possible, don't worry you'll get the binary
shrink when Knoppix upgrades to 3.4. The current situation will be
temporary.

Cheers,
Niall





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tnfox-discussion mailing list
Tnfox-discussion@...
https://lists.sourceforge.net/lists/listinfo/tnfox-discussion

Re: TnFOX Size?

by Leto Atreides :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I actually did use 3.4 for the compile of TnFOX (3.3 wouldnt work), and its still a pretty large lib compared to FOX.  Stripping can probably take a small chunk away but not enough to make a large difference. 

What is all being compiled into TnFOX that makes it so much larger?  All I need is basic GUI code with the IPC features.

On 2/26/06, Niall Douglas <s_sourceforge@...> wrote:
On 26 Feb 2006 at 9:43, The Devils Jester wrote:

> I only care about turning off the features that I dont use that would have
> large impact on the lib size.  7.5ish MB compared to 3.5ish MB is a huge
> difference.  Know of any specific features that add alot of space?

Yes, GCC 3.3's template parser is not very good and generates a lot
of unnecessary code. This adds around 2Mb of unnecessary code. As
TnFOX uses a lot of templates, it's not like it can be compiled out.

Best thing is to move to a better compiler. They totally replaced the
template parser in 3.4 and the output shrinks massively, as well as
running a lot faster.

If that's simply not possible, don't worry you'll get the binary
shrink when Knoppix upgrades to 3.4. The current situation will be
temporary.

Cheers,
Niall





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tnfox-discussion mailing list
Tnfox-discussion@...
https://lists.sourceforge.net/lists/listinfo/tnfox-discussion



--
Talent is not something you learn, its something you refine.

If you make something that any idiot can use, only idiots will use it.

<a href=" http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=1">Get Firefox!</a>

Re: TnFOX Size?

by Niall Douglas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 26 Feb 2006 at 12:12, The Devils Jester wrote:

> I actually did use 3.4 for the compile of TnFOX (3.3 wouldnt work), and its
> still a pretty large lib compared to FOX.  Stripping can probably take a
> small chunk away but not enough to make a large difference.
>
> What is all being compiled into TnFOX that makes it so much larger?  All I
> need is basic GUI code with the IPC features.

Well there's an additional 35,000 lines of code in there which is
about a third more than FOX v1.4. Here are some figures (for
msvc7.1):

FOX 1.6 (with /O2): 2.14Mb
TnFOX no GUI: 0.95Mb
TnFOX minimal: 2.97Mb (+39%)
TnFOX full: 4.4Mb (+106%)

If you want something approaching minimal, see the FAQ section in
include/TnFOXDocs.h from SVN. But in short, disable the FOX compat
layer, disable openssl and the graphics libs (in sconslib.py) and
delete the embedded copy of sqlite3 in the src directory.

Cheers,
Niall





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tnfox-discussion mailing list
Tnfox-discussion@...
https://lists.sourceforge.net/lists/listinfo/tnfox-discussion

Re: TnFOX Size?

by Leto Atreides :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When looking on the TnFOXDocs.h I noticed that with the compatiblity layer turned off, that it says these are not compiled:

    Not compiled:
    \li FX::FXDirBox
    \li FX::FXDirDialog
    \li FX::FXDirList
    \li FX::FXDirSelector
    \li FX::FXDLL
    \li FX::FXDriveBox
    \li FX::FXFileDialog
    \li FX::FXFileList
    \li FX::FXFileSelector
    \li FX::FXPrintDialog
    \li FX::FXReplaceDialog
    \li FX::FXSearchDialog

is that old info, or could that be the reson I get FXFile issues?

--------------------------------------------------------------------------
Talent is not something you learn, its something you refine.

If you make something that any idiot can use, only idiots will use it.

Re: TnFOX Size?

by Niall Douglas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 26 Feb 2006 at 17:57, The Devils Jester wrote:

> When looking on the TnFOXDocs.h I noticed that with the compatiblity layer
> turned off, that it says these are not compiled:
>
>     Not compiled:
>     \li FX::FXDirBox
>     \li FX::FXDirDialog
>     \li FX::FXDirList
>     \li FX::FXDirSelector
>     \li FX::FXDLL
>     \li FX::FXDriveBox
>     \li FX::FXFileDialog
>     \li FX::FXFileList
>     \li FX::FXFileSelector
>     \li FX::FXPrintDialog
>     \li FX::FXReplaceDialog
>     \li FX::FXSearchDialog
>
> is that old info, or could that be the reson I get FXFile issues?

No that's when you define BUILDING_TCOMMON. You'll never do that in
all likelihood.

Cheers,
Niall





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tnfox-discussion mailing list
Tnfox-discussion@...
https://lists.sourceforge.net/lists/listinfo/tnfox-discussion