Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5BF8E200CD1 for ; Wed, 26 Jul 2017 12:18:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5AA2616894D; Wed, 26 Jul 2017 10:18:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A116716894A for ; Wed, 26 Jul 2017 12:18:26 +0200 (CEST) Received: (qmail 66358 invoked by uid 500); 26 Jul 2017 10:18:24 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 66237 invoked by uid 99); 26 Jul 2017 10:18:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2017 10:18:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BB694180314 for ; Wed, 26 Jul 2017 10:18:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=visualsvn.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id AzgN_cEDkF-2 for ; Wed, 26 Jul 2017 10:18:22 +0000 (UTC) Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A9E865FB6A for ; Wed, 26 Jul 2017 10:18:21 +0000 (UTC) Received: by mail-qk0-f180.google.com with SMTP id x191so16670571qka.5 for ; Wed, 26 Jul 2017 03:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=visualsvn.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0mrSEyFxuTkarlN3odj72wxKD+YyLAeCKpl84SXI/EA=; b=gnqypPkVVrT/Ek33n93De8Ai4Mo9WFRd3nmXcpTat+KBNohrcN0O9lbIy5i3crbgCF d3JQVV7cYMNPhvCT4RXW+0xB9sl0h/An7PQZpXIs6iibQObzQDcN2cJWESOE2e1y2f7A 1A6EZYjtYyA/mOWDuT+mpzr1qY79xhm70pscA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0mrSEyFxuTkarlN3odj72wxKD+YyLAeCKpl84SXI/EA=; b=mobxBnQ01yEBxv4RBo+B6fRFgf21JWF/9MZ1ermXjffciGarpBaouNEU4AKl3mCq02 p/wmM6TY/C+68s7jaz5zIR/NRolpyHMnQPGmYNYWMmpTGyZcWOsQGdMF51zSmYRp7APt Ybr4xR5n1IRdDjsZXy8k3flzjGWX7cixydAEbXwCIcQeYzZazISlylCjSNh/TTO0c7Wt m6pn8OZRbXjD83iC+kPJQBoitqirONi74Z3cX4RXJjQdfJPzfXu5zYiNZxETEsP0VUsB wfLU8d2vvRl0Vrit2X+LQ8fL+0YnhIeidkhgnjJ7ior8pi805VAw2eq8xajVmXEfL2WC /pDQ== X-Gm-Message-State: AIVw110D6dqUB8MY97U6W+r2XGbXGxuu0XX9UXEky4ufH9SxiVSO5cLr mXG6sdxDYO3Ffdy2RANHXuvEYUmxo+INTHjOJA== X-Received: by 10.55.156.9 with SMTP id f9mr520748qke.141.1501064300586; Wed, 26 Jul 2017 03:18:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.139.100 with HTTP; Wed, 26 Jul 2017 03:18:00 -0700 (PDT) In-Reply-To: <20170726095410.GR90677@ted.stsp.name> References: <20170714111350.B07063A0F99@svn01-us-west.apache.org> <1500300013.520913.1043351984.67FF62A9@webmail.messagingengine.com> <20170726095410.GR90677@ted.stsp.name> From: Evgeny Kotkov Date: Wed, 26 Jul 2017 13:18:00 +0300 Message-ID: Subject: Re: svn commit: r1801940 - in /subversion/trunk: ./ notes/ subversion/include/ subversion/include/private/ subversion/libsvn_delta/ subversion/libsvn_fs_fs/ subversion/libsvn_subr/ subversion/tests/libsvn_delta/ subversion/tests/libsvn_subr/ To: Stefan Sperling Cc: Subversion Development , Daniel Shahaf , commits@subversion.apache.org Content-Type: text/plain; charset="UTF-8" archived-at: Wed, 26 Jul 2017 10:18:27 -0000 Stefan Sperling 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