Mode Z compression

Advertisement

lovetocode
Joined:
Posts:
4
Location:
Sydney

Mode Z compression

Why does WinSCP not support Mode Z compress when Filezilla does, and both are supposed to be based on the same code?

Are there known major hurdles to supporting it, or is it just a weekend of coding?

Lack of compression makes the great sync feature operate slowly..

Reply with quote

Advertisement

lovetocode
Joined:
Posts:
4
Location:
Sydney

Re: Mode Z compression

I noticed the Filezilla server supported it, so assumed the client supported it.
I did look at the Filezilla client code after posting, and you are right. I could not find the mode Z code.
The great sync feature winSCP is much slower without compression and uses too much bandwidth.
Do you think it would be difficult to add? I could try assist, or try get some donations going.
It would probably need an exception list so *.jpg, *.png, etc. do not get compressed.
Voyager FTP and core FTP appears to support Mode Z, but sync modules there are not as good as in WinSCP.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

What makes you believe that the compression would speed up the synchronization? Not that it cannot, but in most cases, the synchronization is slow because it involves a huge amount of round-trips to/from the server. Compression would not help with that.

Reply with quote

lovetocode
Joined:
Posts:
4
Location:
Sydney

mode Z

Good point. True round trips is a huge cost.

This could be fixed with a recursive ls -alsr on filezilla server and winscp, but that
would be a non-standard command. This way the whole file structure could be compressed
and sent in one go.

However, most files we noticed that were being sync'd were html, sql, csv and mssql bak
files.

Uncompressed it was trying to transfer 4GB every 6 hours. The CSV, SQL and MSSQL bakups
are normally over 1GB. Compressed it was less than 500k. That's over 16GB vs 2GB over a
day from one country to another.

This does result in a huge speed up.

Ofcourse scripts could be written to post and pre compress, but this becomes complex, with
timing and all that unless we used a sshd server, and results in many processes and many
possible points of failures.

Reply with quote

Advertisement

You can post new topics in this forum