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 0463F200CD1 for ; Wed, 26 Jul 2017 12:18:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 030E816894C; Wed, 26 Jul 2017 10:18:26 +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 47ECA16894A for ; Wed, 26 Jul 2017 12:18:25 +0200 (CEST) Received: (qmail 66247 invoked by uid 500); 26 Jul 2017 10:18:24 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 66227 invoked by uid 99); 26 Jul 2017 10:18:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-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 spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AA7B21A0912 for ; Wed, 26 Jul 2017 10:18:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.401 X-Spam-Level: X-Spam-Status: No, score=-2.401 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_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id qP4l5a0wyW08 for ; Wed, 26 Jul 2017 10:18:22 +0000 (UTC) Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A9B9C5FB43 for ; Wed, 26 Jul 2017 10:18:21 +0000 (UTC) Received: by mail-qk0-f171.google.com with SMTP id d145so76705783qkc.2 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=ortY91BkHtmHwHrU3SxJN1owoXYKDi2PmZjyFTJyiZeh7xNIapyiaDtjyepsMV1xYL SxCsfKxTi1gKUBrOO5t6YvT2pZvqNoLEnHhHdYr6i2t14Dj6uHIb67BNz6q46U6qQR30 eWwb84FAvxhVon9O8aHyCyhpvcZUpSBS/E+Bc2QhmXl2MajE2GFBUwGhIf0BlroorQxp vtiR6Ezzxv/mdvT2DAjPvK5UIK8OsCM77aGaZeAjAOgX2lhj53CWqON0TGWimtMxATqs 2kpPmMxE/y5e6w/pa+lOAJHgvNFoe6j5y9ZXXvZPOnaUUMwrQwABO4mVnFSV1HcP8/5n oysw== X-Gm-Message-State: AIVw1101xlWh145mSV+1T1HJnXQl5S7SQmupu+UCv+zUbDJdBXzIa5k1 j/fqVtp4MzERe26oG5iAqVdvsZxAsHlq 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:26 -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