TCMD 7.50pb1 - Can't select LZMA compression for ZIP

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

TCMD 7.50pb1 - Can't select LZMA compression for ZIP

Post by *gnozal8 »

TotalCMD 7.50 public beta 1 with windows NT4 sp6

Configuration -> Zip packer -> Internal ZIP compression
The up/down box only allows values form 0 to 9.
Selecting 10 (LZMA) is impossible.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

[Packer]
LzmaAllowed=1
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Maybe this option should be set to 1 by default?
Anyway TC asks user when he tries to set 10 in zip packer config.

p.s. TC's own maximum compression (9) sometimes better than LZMA :)
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2DrShark
It's not set to 1 by default because this is not full LZMA implementation. Few things are still missing (i.e. encryption) and it was meant for testing only. I don't know why author decided not to remove that at all (despite of wondering about it few times).
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

LZMA packing is there only for test reasons. Only the unpacker is on by default, to support ZIP archives created by newer Winzip versions. LZMA compression is better only for some file types, but it's very slow.
Author of Total Commander
https://www.ghisler.com
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

Lefteous wrote:[Packer]
LzmaAllowed=1
I overlooked this, sorry.
I wanted to test it, because in my experience 7-ZIP's compression ratio is (almost) always better than WinRAR and only a bit slower.
ghisler(Author) wrote:LZMA compression is better only for some file types, but it's very slow.
I just tested it, it's indeed _very_ slow, almost unusable, compared to 7-ZIP (native or wcx plugin) even with ultra setting, which works well even on my low end PC. Strange.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I'm using their official LZMA SDK dll...
Author of Total Commander
https://www.ghisler.com
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Better ?

Post by *Clo »

2gnozal8

:) Hello !

• I just tested now that follows (ZIP ratio "10" - LZMA) :
HISTORY.RAR  99 130 17/04/2009 22:57 -a--
HISTORY.ZIP 127 412 16/04/2009 07:50 -a--
- With the History.txt file of TC 7.5 ß-1 as source…
- Not slower, not better…
… but I persist in saying that to keep the LZMA method is useful, anyway.

:mrgreen: KR
Claude
Clo[face=arial][/face]
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

ghisler(Author) wrote:Strange, I'm using their official LZMA SDK dll...
It's probably because of my (very) low end PC : NT4 PII-300MHz 64Mb RAM ! (memory allocation issue ? lots of disk swapping !).
Nevertheless, 7-ZIP wcx plugin or genuine 7-ZIP are _much_ faster.
Clo wrote:I just tested now that follows (ZIP ratio "10" - LZMA)
Here are my results (on the same old PC) :

HISTORY_Best.rar 99 130
HISTORY_wcx.7z 127 016
HISTORY_Genuine.7z 127 405
HISTORY_Ratio10.ZIP 127 412
HISTORY_Normal.rar 134 706
HISTORY_Ratio9.ZIP 153 776
HISTORY.TXT 496 242

Other example :

TOTALCMD.7z 1 104 409
TOTALCMD.rar 1 214 171
TOTALCMD.EXE 3 447 544

I can't use the very best compression settings with 7-Zip because of the available memory.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Well there are no settings concerning memory usage in TC to boot compression ratio or speed.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

LZMA isn't good for TXT files. RAR probably uses something else like PPMD. TC can currently only unpack PPMD.
Author of Total Commander
https://www.ghisler.com
Post Reply