Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 2 3 [4] 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Recursive-strip C comments< Next Oldest | Next Newest >
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 09 2007,14:52 QUOTE

My experience with zip compressions (on Windows) has been that they are incredibly good with ascii text files.  I'll pull together some numbers when I get the chance, but we're talking high magnitudes.  Of course, compression on binaries is almost innefctive because the binaries don't have many repeated patterns in them and so they cannot be replaced by shorter placeholders by the algorithm.

A huge ascii file with repeated patterns in it should compress very highly, and I don't think that adding comments should have a high impact on that.  What is the best compression tool that can be used on Linux?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Dec. 09 2007,17:08 QUOTE

lzma.. Then there's bzip2, then gzip, then zip, then compress.

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: Dec. 11 2007,15:36 QUOTE

To everybody:
This method is presently unusable, because 'cpp' strips all lines that begin with directives -- for example: '#define' and '#undef'.
Back to top
Profile PM 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: Dec. 12 2007,00:30 QUOTE

-- work in progress --
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Dec. 18 2007,15:13 QUOTE

Hi s_i,

I could be missing something but I don't quite follow why you want to do this sort of  thing to uci/unc files at all.  They don't use ramdisk.  In particular, running scripts to prune header files seems risky to me.  You only have to inadvertently bork one character to break the header for some build.

Personally I think it's better to leave all files in these two extension types alone.  I don't prune them at all, and like to be able to find the readmes etc in these extensions and often refer to them.  It only means a bigger download.  Leaving the files in place also can  provide dependency headers and libs ready to use for compiling an upgrade,  and might provide useful evidence about the source of problems with an extension.

And I'm not sure I trust stripped binaries unless the build does it for you anyway, but maybe that's not entirely rational ...?  I suppose a stripped binary may have a smaller footprint once loaded into memory.

Pruning is a good idea for .dsl extensions, so you can apply all of these techniques to that extension type.

I can see there is a type of aesthetic pleasure in getting a package size down for its own sake though?
Back to top
Profile PM 
23 replies since Dec. 07 2007,12:41 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 2 3 [4] 5 >/
reply to topic new topic new poll
Quick Reply: Recursive-strip C comments

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code