There are two decision functions.

The one in gzip triggers if the sum of the past 4096 bytes divides (plain text) by 4096 with zero remainder.

The another one in rsyncrypto triggers if the sum of the past 256 bytes divides (compressed plain text) by 8192 with zero remainder. Of course, the block size must be 8192 bytes at least.

But the homepage explains that finally the performance for the decision function is that it triggers if the sum of the past 8196 bytes divides by 4096 with zero remainder.

Can you tell me how to work out the final decision function?

Or you get the final decision function first, and then extend it to gzip and rsyncrypto?

Thanks.