Archive: My result of zlib and bzip2


My result of zlib and bzip2
it seems that the bz2 version NSIS is good for many text files
for example nsis191 developer kit itself including many c source files.
and the zlib version NSIS is good for excutable files
for example , only makensis.exe only.


The only comparison I want to see is in size. I could create one if you like.

-Duane


ok thanks

Originally posted by DuaneJeffers
The only comparison I want to see is in size. I could create one if you like.

-Duane
Please
use
http://msdn.microsoft.com/library/en...l/htmlhelp.exe
and
http://www.php.net/do_download.php?d...p-4.1.0.tar.gz
as the sample
the first includes nearly all exe and dll file
the second includes a lot of cpp source

I 'll do a comparison tonight too.
Let's compare our result.

; The file to write
OutFile "php40.exe"

; The default installation directory
InstallDir $PROGRAMFILES\htmlhlp

; The stuff to install
Section "ThisNameIsIgnoredSoWhyBother?"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File /r "d:\php-4.1.0\*.*"
SectionEnd ; end the section



; eof
MakeNSIS v1.91 - Copyright 1999-2001 Nullsoft, Inc.

Portions Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler (zlib).
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, et al.


EXE header size: 35328 / 35328 bytes
Install code+strings: 25798 / 73978 bytes
Install data: 3876887 / 16248536 bytes
CRC (0x6239362F): 4 / 4 bytes

Total size: 3938017 / 16357846 bytes (24.1%)

MakeNSIS v1.91 - Copyright 1999-2001 Nullsoft, Inc.

Includes portions derived from bzip2 (see documentation for details).
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, et al.



Processing config:

EXE header size: 35840 / 35840 bytes
Install code+strings: 73978 bytes
Install data: 16240304 bytes
[compress]
CRC (0x13A22977): 4 bytes

Total size post compress: 2803329 / 16350126 bytes (17.1%)
;--------------------------------------------------------
; The name of the installer
Name "htmlhlp"
Caption "htmlhlp"

; The file to write
OutFile "htmlhlp.exe"

; The default installation directory
InstallDir $PROGRAMFILES\htmlhlp


; The stuff to install
Section "ThisNameIsIgnoredSoWhyBother?"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File "D:\htmlhelp\*.*"
SectionEnd ; end the section

MakeNSIS v1.91 - Copyright 1999-2001 Nullsoft, Inc.

Portions Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler (zlib).
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, et al.


EXE header size: 35328 / 35328 bytes
Install code+strings: 1114 / 2273 bytes
Install data: 3893728 / 6191678 bytes
CRC (0xC37BFF54): 4 / 4 bytes

Total size: 3930174 / 6229283 bytes (63.1%)
MakeNSIS v1.91 - Copyright 1999-2001 Nullsoft, Inc.

Includes portions derived from bzip2 (see documentation for details).
Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, et al.



EXE header size: 35840 / 35840 bytes
Install code+strings: 2273 bytes
Install data: 6191678 bytes
[compress]
CRC (0x905C6D73): 4 bytes

Total size post compress: 3960860 / 6229795 bytes (63.6%)


Hi,

My PPWIZARD download just dropped from
1460 to 750K just by using bzip2! Am I happy or what?

There are a lot of HTML files in the download.

Now if only I didn't have to choose between the 2 compilers (and the compiler made the choice on compression - at least an option)...

Bye,
Dennis