[Warzone-dev] 7zip instead of zip for the *.wz archives.

2007-02-19 Thread Kamaze
I just read a bit about PhysFS und looked into the trunk.
And what must i read?

7zip support added, written by Dennis Schridde :)

Then, why not use 7Zip/LZMA instead of a normal zip archive?

- Kamaze

___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev


Re: [Warzone-dev] 7zip instead of zip for the *.wz archives.

2007-02-19 Thread 2LT Mortis [BF 1BFC]
On Mon, 19 Feb 2007 10:28:12 +0100, Kamaze [EMAIL PROTECTED] wrote:
 I just read a bit about PhysFS und looked into the trunk.
 And what must i read?
 
 7zip support added, written by Dennis Schridde :)
 
 Then, why not use 7Zip/LZMA instead of a normal zip archive?

Sounds good to me. The only concern I have here is wether the speedloss of 
uncompressed zip vs LZMA will be acceptable, when compared with compressed zip 
it'll probably be a small, negligable difference.

-- 
Giel


___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev


Re: [Warzone-dev] 7zip instead of zip for the *.wz archives.

2007-02-19 Thread Dennis Schridde
Am Montag, 19. Februar 2007 schrieb Kamaze:
 I just read a bit about PhysFS und looked into the trunk.
 And what must i read?

 7zip support added, written by Dennis Schridde :)
Hehe...

 Then, why not use 7Zip/LZMA instead of a normal zip archive?
No one has PhysFS SVN trunk on their harddisk...
While this is not a problem for Windows users (the libraries for the Windows 
version are bundled (statically linked) with the exe, this would either 
require Linux users to install a development SVN version, or require us to 
statically link PhysFS. Additionally the devs need to keep in sync with the 
PhysFS trunk.

Additionally I fear that my implementation is not optimal for short and random 
access of large files:
It decompresses a complete block of the 7zip file into memory. All future 
access to files in these blocks are then very fast (much faster than eg. the 
zip implementation), but you also have a much bigger memory-footprint and the 
delay on 1st access is quite big. Maybe I'll write a more stream-based 
implementation some day in the future...

--Dennis


pgpGSNZBems6W.pgp
Description: PGP signature
___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev


Re: [Warzone-dev] 7zip instead of zip for the *.wz archives.

2007-02-19 Thread Dennis Schridde
Am Montag, 19. Februar 2007 schrieb 2LT Mortis [BF 1BFC]:
 On Mon, 19 Feb 2007 10:28:12 +0100, Kamaze [EMAIL PROTECTED] wrote:
  I just read a bit about PhysFS und looked into the trunk.
  And what must i read?
 
  7zip support added, written by Dennis Schridde :)
 
  Then, why not use 7Zip/LZMA instead of a normal zip archive?

 Sounds good to me. The only concern I have here is wether the speedloss of
 uncompressed zip vs LZMA will be acceptable, when compared with compressed
 zip it'll probably be a small, negligable difference.

PS: I am currently very happy with uncompressed zip for .wz files. We could 
also use uncompressed 7zip, but then than would make no difference at all.
Reason: The installers (Windows and Linux) compress allready using lzma and 
they compress all files in one chunk much better than some files in many 
chunks. Additionally the difference between releases is much smaller than 
they were if the .wz files were compressed.

--Dennis


pgpkOoo96aUYH.pgp
Description: PGP signature
___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev