Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iQZtD-0005td-B5 for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Nov 2019 16:35:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iQZtC-0001YE-2d for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Nov 2019 16:35:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iQZtB-0001Y7-M6 for pgsql-hackers@lists.postgresql.org; Fri, 01 Nov 2019 16:35:05 +0000 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iQZt7-0002JX-UP for pgsql-hackers@lists.postgresql.org; Fri, 01 Nov 2019 16:35:04 +0000 Received: by mail-qt1-x82e.google.com with SMTP id c26so13606815qtj.10 for ; Fri, 01 Nov 2019 09:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=HdjfFHZorHBUcn/0SgksEfLknpuAYj1JcKdOgxV7WII=; b=UnqhWtFjcpCRcDQ0qG1tppY0ib9+idRYiv0rtDh8exiMcC45qZeI2xyczw4R1JWoCv X/Aug0sLTo05DyYiVp8fVz2pDxbBxHmYRc+X00Vk3sjho0tFLUy+gpOtc92TzD4RJQ6C FkLnjpEcYZrWmeEShCNnhd3GwvFOsCBM3V//Qwv8jzOnb3odAGfBeE7xyAlmdNV6KQHY StHwWNVY08bZdZkXKXy2+Qmxme0P5f1X0XlMGEj4sgVemBUJrmAZj76rxWXM4/6EPEex lDXZ+eku4IgYDEZxCuRsXNimQWJK5wrkHDILr7TCBnQMBDLk4sU9HWBjCjr5e/adPXjF zh+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=HdjfFHZorHBUcn/0SgksEfLknpuAYj1JcKdOgxV7WII=; b=hq8E/4ZOg6wpK5usbXje4S8aZnemCcMzGjywtU3LUT7WQ6bwZ0n4Th3F5MrCc2iJWz DC/F3Fi/xY2sI9Erd3iQnOa403RAVN9yONikeBhxuWhsa7WAB69O6RVyIy2NG/gzpSIg egJMghq/7v7IubuANoEn1kd1A/05c3ZLuXt+fSCSTONXf7ft5woVMuHEFzkL+G0siw5R vmWna8Ie6eGNjT9VjkWP9XIvnIa1o0CMH9XhOoIF8XcY5mdt5JxXEI3eiNeyk0S49g6I Mue420lVpn/uvg11QK/2BC4b/oY7dzzHA5QjhYq8nqa0cM6PBBQvknsAbyLXXjBg5KTd BkAg== X-Gm-Message-State: APjAAAWsmmmNK23QYs9diLAJ3FEIsC0E+YGSIrViFSNacYBr4sIjBj63 pmVpLeiLaUd+DzYXPxYj6k+oUw== X-Google-Smtp-Source: APXvYqyUwMeIo1wRjGvvVaTaqlu8B8JuE1hp8R0qxAYt1H2h5EzZFExCHyRwhG7Bq9oeNhKO/zZdaQ== X-Received: by 2002:ac8:6757:: with SMTP id n23mr122428qtp.345.1572626098844; Fri, 01 Nov 2019 09:34:58 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.57.113.12]) by smtp.gmail.com with ESMTPSA id s42sm4587593qtk.60.2019.11.01.09.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 09:34:58 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 13C42300A6A; Fri, 1 Nov 2019 12:48:28 -0300 (-03) Date: Fri, 1 Nov 2019 12:48:28 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: Andrey Borodin , Gasper Zejn , pgsql-hackers@lists.postgresql.org Subject: Re: pglz performance Message-ID: <20191101154828.GA15829@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3c2d92d0-e715-f9ed-e1a7-3c510ed65940@2ndquadrant.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Nov-01, Peter Eisentraut wrote: > On 2019-10-25 07:05, Andrey Borodin wrote: > > > 21 окт. 2019 г., в 14:09, Andrey Borodin написал(а): > > > > > > With Silesian corpus pglz_decompress_hacked is actually decreasing performance on high-entropy data. > > > Meanwhile pglz_decompress_hacked8 is still faster than usual pglz_decompress. > > > In spite of this benchmarks, I think that pglz_decompress_hacked8 is safer option. > > > > Here's v3 which takes into account recent benchmarks with Silesian Corpus and have better comments. > > Your message from 21 October appears to say that this change makes the > performance worse. So I don't know how to proceed with this. As I understand that report, in these results "less is better", so the hacked8 variant shows better performance (33.8) than current (42.5). The "hacked" variant shows worse performance (48.2) that the current code. The "in spite" phrase seems to have been a mistake. I am surprised that there is so much variability in the performance numbers, though, based on such small tweaks of the code. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services