Disable Compression (MODE Z)

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Disable Compression (MODE Z)

Post by *DarkRuleR »

Hi...

Is it possible to disable compression (MODE Z) in the ftp client for certain parts?

I like mode z for directory listing compression but not all the time for downloading compression.

When downloading allready compressed files like .rar files I get a higher download ratio when I turn OFF compression mode z.
(tested with flashfxp)

Greetz!

DR...
#106383 Windows 10 Pro 64-bit
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately you can currently only turn it on/off completely, not partially. I will consider your suggestion for a later version.
Author of Total Commander
https://www.ghisler.com
User avatar
PeaceMaker
Senior Member
Senior Member
Posts: 287
Joined: 2005-12-31, 22:32 UTC
Location: Warsaw, Poland
Contact:

Re: Disable Compression (MODE Z)

Post by *PeaceMaker »

DarkRuleR wrote:Hi...

Is it possible to disable compression (MODE Z) in the ftp client for certain parts?

I like mode z for directory listing compression but not all the time for downloading compression.

When downloading allready compressed files like .rar files I get a higher download ratio when I turn OFF compression mode z.
(tested with flashfxp)

Greetz!

DR...
Sounds interesting...
[face=tahoma]LICENSE NUMBER: #101897 Single user license (since: 6th February 2004)
CURRENT VERSION: Total Commander 9.00 beta 12 (released: 31st August 2016)
[/face]
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Post by *DarkRuleR »

ghisler(Author) wrote:Unfortunately you can currently only turn it on/off completely, not partially. I will consider your suggestion for a later version.
Great...
A quick solution could be by making the ModeZ= setting in wcx_ftp.ini site specific?
PeaceMaker wrote:Sounds interesting...
If you're downloading data allready compressed with for example rar I quess the data cant be compressed much more so on-the-fly compression works as a disadvantage?

DR...
#106383 Windows 10 Pro 64-bit
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2DarkRuleR

Perhaps the following helps:
wcx_ftp.ini, [General]

ZlibRatioBin=3 0..9:
zip library compression ratio for uploads. 0=none, 1=fastest, 9=strongest

ZlibRatioTxt=3 0..9: same as zlibratiobin, but for text files. You may want to set a higher value here, because text files usually compress better. Attention: The Cisco PIX firewall dislikes strength 1, and aborts the upload

Try setting ZlibRatioBin to 0. This way, only text files will be compressed, including directories.
Author of Total Commander
https://www.ghisler.com
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Post by *DarkRuleR »

ghisler(Author) wrote:2DarkRuleR

Perhaps the following helps:
wcx_ftp.ini, [General]

ZlibRatioBin=3 0..9:
zip library compression ratio for uploads. 0=none, 1=fastest, 9=strongest

ZlibRatioTxt=3 0..9: same as zlibratiobin, but for text files. You may want to set a higher value here, because text files usually compress better. Attention: The Cisco PIX firewall dislikes strength 1, and aborts the upload

Try setting ZlibRatioBin to 0. This way, only text files will be compressed, including directories.
Thanx for the tips!

I've tried them and this was my result:

Code: Select all

Internet Connection: 10240 / 1024 Kbps

Data: RAR compressed movie
Download: 50.000.000 bytes, 1030.0 kbytes/s       ModeZ=0
Download: 50.000.000 bytes, 821.6 kbytes/s        ModeZ=1

Data: RAR compressed movie
Upload:   15.000.000 bytes, 105.9 kbytes/s        ZlibRatioBin=0
Upload:   15.000.000 bytes, 105.5 kbytes/s        ZlibRatioBin=1
Upload:   15.000.000 bytes, 103.9 kbytes/s        ZlibRatioBin=5
Upload:   15.000.000 bytes, 104.0 kbytes/s        ZlibRatioBin=9

Data: Text file with motherboard documentation and random data
Upload:    1.000.000 bytes, 385.4 kbytes/s        ZlibRatioTxt=0
Upload:    1.000.000 bytes, 383.5 kbytes/s        ZlibRatioTxt=1
Upload:    1.000.000 bytes, 383.5 kbytes/s        ZlibRatioTxt=5
Upload:    1.000.000 bytes, 385.8 kbytes/s        ZlibRatioTxt=9
Greetz!

DR...
#106383 Windows 10 Pro 64-bit
Post Reply