Stefan Sperling <s...@elego.de> writes:

> Does mod_dav_svn really need an option for this?
>
> Can't lz4 (svndiff2) be negotiated as a mutual protocol capability of
> client and server? Why won't a simple logic such as the following work:
>
>   If the client announces lz4 compression level 1 support, use it.
>   Else, use zlib.

The current state is that there are no additional options in mod_dav_svn,
and the "SVNCompression" option has just been discussed as an explicit
alternative to what we have now (but it also has a couple of potential
drawbacks, and I don't plan to implement it at this time).

Currently, the negotiation scheme works similarly to what you have described.
If the server has "SVNCompressionLevel 1", and the client supports LZ4, then
it will be used.  Otherwise, in case of older clients, they will be using zlib
compression with the corresponding compression level.

Apart from this, I was willing to propose that we switch to LZ4 compression
by default for both mod_dav_svn and newly created FSFS repositories.  That
is, by making "1" the default value of SVNCompressionLevel directive and
by making "lz4" the default value of the discussed "compression=" knob in
fsfs.conf.

(I will take this to a separate thread once all the necessary things are
in place.)


Regards,
Evgeny Kotkov

Reply via email to