WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Is zsync really useful for -tcz?  (Read 2125 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Is zsync really useful for -tcz?
« on: November 30, 2012, 04:43:59 PM »
In the repo there is a .zsync file for .tcz's. At the zsync site it is written:

Quote
If the content of a file is compressed, but not in a simple gzip format, bear in mind that zsync may not be effective. Each compressed stream can typically only be efficiently updated via the rsync method if it is either completely unchanged, or the compression has been made rsync-friendly (with, for example, gzip --rsync).

So, for example, zsync is useless for individual Debian or RPM package files, and is useless for bzip2 files. But it might still be useful for an ISO containing lots of such files, if, say, some packages have changed but some are completely unchanged.

Reading zsync docs my understanding is that it is useless for .tcz and works only for gzipped files. Am I wrong?

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Is zsync really useful for -tcz?
« Reply #1 on: December 01, 2012, 04:31:56 AM »
No, it is useful, even though not perfect due to the compression.

In my tests back then when introducing zsync, a typical admin change of editing the startup script caused a traffic of ~20kb, irrespective of the extension size (biggest tested was a few mb).


If you'd like to test this, just remove the output redirect from the zsync commands in tce-load.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Is zsync really useful for -tcz?
« Reply #2 on: December 01, 2012, 04:38:05 AM »
Which zsyncmake command line switches used creating .zsync for .tcz?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Is zsync really useful for -tcz?
« Reply #3 on: December 01, 2012, 04:47:11 AM »
None - "zsyncmake file.tcz" run in the same directory.

It does post a warning to use the -u option, but since we want a relative path to the same dir, the default behavior is ok.


edit: That should be one of the update scripts and not tce-load in the above post.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Is zsync really useful for -tcz?
« Reply #4 on: December 01, 2012, 05:21:10 AM »
Thanks, will add .zsync  when updating and check how much is saved.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."