DSL Tips and Tricks :: Recursive-strip C comments



Quote
Is this only to save space for the compressed tarballs?... or to pack more in the RamDisk when running the LiveCD version?
Both..

Quote
Is there such a thing as a compressed folder (a la NTFS) that could be used for savings in RamDisk?
Nope, not with vanilla ext2.. There is a gzip compression patch, but that would use too much computing power to have in DSL.

Quote
If it's for the tarball sizes (uci sizes), how much difference does it make after compression?  An unstripped xyz is how much bigger than a stripped xyz after it's compressed?
Unstripped apps are generally 2-5 times larger than stripped (for example: bash 3.2 not stripped 1.5M, stripped 480kb)
Of course the difference isn't as big compressed..

Quote (john.martzouco @ Dec. 08 2007,19:43)
If it's for the tarball sizes (uci sizes), how much difference does it make after compression?  An unstripped xyz is how much bigger than a stripped xyz after it's compressed?
For example (based on what I am working on):
(1)
gtk2-dev.unc (unstripped) -- Size: 516K
gtk2-dev.unc (stripped) -- Size: 240K
Contents and configuration:
atk-1.9.1: Config [pastebin.com]
cairo-1.4.12: Config [pastebin.com]
glib-2.12.13: Config [pastebin.com]
gtk+-2.10.14: Config [pastebin.com]
pango-1.12.4: Config [pastebin.com]
Source code:
atk-1.9.1.tar.gz [ftp.gnome.org]
cairo-1.4.12.tar.gz [cairographics.org]
glib-2.12.13.tar.gz [ftp.gnome.org]
gtk+-2.10.14.tar.gz [ftp.gnome.org]
pango-1.12.4.tar.gz [ftp.gnome.org]
What was stripped:
- C headers ('.h'). [comments]
- m4 macros used by aclocal ('.m4') [comments]
- libtool library files ('.la') [comments]
- bash and perl scripts [comments]
- pkgconfig files ('.pc') [empty lines]

(2)
libwxgtk2-dev.unc (unstripped) -- Size: 780K
libwxgtk2-dev.unc (stripped) -- Size: 368K
Contents and configuration:
wxGTK-2.6.4: Config [pastebin.com]
Source code:
wxGTK-2.6.4.tar.gz [downloads.sourceforge.net]
What was stripped:
- C++ headers ('.h') [comments]
- m4 macros used by aclocal ('.m4') [comments]
- bash scripts [comments]
- XML files ('/usr/local/share/bakefile/presets/*.bkl') [XML-style comments]

Quote (stupid_idiot @ Dec. 08 2007,12:41)
Quote (john.martzouco @ Dec. 08 2007,19:43)
If it's for the tarball sizes (uci sizes), how much difference does it make after compression?  An unstripped xyz is how much bigger than a stripped xyz after it's compressed?

For example (based on what I am working on):
(1)
gtk2-dev.unc (unstripped) -- Size: 516K
gtk2-dev.unc (stripped) -- Size: 240K

These are all uncompressed numbers, yes?
Sorry John, I neglected to mention those are COMPRESSED numbers.
Uncompressed sizes:
(1)
(directory) gtk2-dev/ (unstripped) -- Size: 3612K / 3.6M
(directory) gtk2-dev/ (stripped) -- Size: 2548K / 2.5M
(2)
(directory) libwxgtk2-dev/ (unstripped) -- Size: 4428K / 4.4M
(directory) libwxgtk2-dev/ (stripped) -- Size: 3060K / 3.0M

This command was used to make the '.unc' extensions:
Code Sample
mkisofs -R -hide-rr-moved -cache-inodes -pad <directory>/ | create_compressed_fs -m -B65536 -L9 -v - <foo>.unc
(BTW, I use 'miso' as a bash alias for 'mkisofs -R -hide-rr-moved -cache-inodes -pad'.)

Quote
An unstripped xyz is how much bigger than a stripped xyz after it's compressed?
There's really no way to give you even an approximate reduction amount for "xyz", since it depends mostly on the amount of commenting the author did. All that can be done is give examples of what the reduction is for a specific package, as stupid_idiot did with gtk

Next Page...
original here.